Skip to content

Commit 1cfaee6

Browse files
committed
docs: document trace_config parameter in Span.__init__
The trace_config parameter was unused. Originally intended for trace-level configuration from the OpenTelemetry protocol, but the upstream TraceConfig proto was removed. Retained for backwards compatibility.
1 parent 25bdf67 commit 1cfaee6

File tree

1 file changed

+3
-1
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/trace

1 file changed

+3
-1
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,9 @@ class Span(trace_api.Span, ReadableSpan):
786786
parent: This span's parent's `opentelemetry.trace.SpanContext`, or
787787
None if this is a root span
788788
sampler: The sampler used to create this span
789-
trace_config: TODO
789+
trace_config: Unused. Originally intended for trace-level configuration
790+
from the OpenTelemetry protocol, but the upstream ``TraceConfig``
791+
proto was removed. Retained for backwards compatibility.
790792
resource: Entity producing telemetry
791793
attributes: The span's attributes to be exported
792794
events: Timestamped events to be exported

0 commit comments

Comments
 (0)