We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a288834 commit df6e6aeCopy full SHA for df6e6ae
opentelemetry-api/src/opentelemetry/trace/span.py
@@ -175,8 +175,8 @@ def __new__(
175
trace_id: int,
176
span_id: int,
177
is_remote: bool,
178
- trace_flags: "TraceFlags" = DEFAULT_TRACE_OPTIONS,
179
- trace_state: "TraceState" = DEFAULT_TRACE_STATE,
+ trace_flags: typing.Optional["TraceFlags"] = DEFAULT_TRACE_OPTIONS,
+ trace_state: typing.Optional["TraceState"] = DEFAULT_TRACE_STATE,
180
) -> "SpanContext":
181
if trace_flags is None:
182
trace_flags = DEFAULT_TRACE_OPTIONS
0 commit comments