Skip to content

Event API should accept Context instead of specific trace_id, span_id, trace_flags #4328

Open
@aabmass

Description

See specification here https://github.com/open-telemetry/opentelemetry-specification/blob/v1.39.0/specification/logs/event-api.md#emit-event

Right now we accept specific fields from SpanContext which doesn't handle extra context stuff like baggage

trace_id: Optional[int] = None,
span_id: Optional[int] = None,
trace_flags: Optional["TraceFlags"] = None,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    apiAffects the API package.sdkAffects the SDK package.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions