File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
opentelemetry-api/src/opentelemetry/trace Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -538,18 +538,14 @@ class DefaultTracer(Tracer):
538
538
All operations are no-op.
539
539
"""
540
540
541
- # Constant used to represent the current span being used as a parent.
542
- # This is the default behavior when creating spans.
543
- CURRENT_SPAN = DefaultSpan (INVALID_SPAN_CONTEXT )
544
-
545
541
def get_current_span (self ) -> "Span" :
546
542
# pylint: disable=no-self-use
547
543
return INVALID_SPAN
548
544
549
545
def start_span (
550
546
self ,
551
547
name : str ,
552
- parent : ParentSpan = CURRENT_SPAN ,
548
+ parent : ParentSpan = Tracer . CURRENT_SPAN ,
553
549
kind : SpanKind = SpanKind .INTERNAL ,
554
550
attributes : typing .Optional [types .Attributes ] = None ,
555
551
links : typing .Sequence [Link ] = (),
@@ -562,7 +558,7 @@ def start_span(
562
558
def start_as_current_span (
563
559
self ,
564
560
name : str ,
565
- parent : ParentSpan = CURRENT_SPAN ,
561
+ parent : ParentSpan = Tracer . CURRENT_SPAN ,
566
562
kind : SpanKind = SpanKind .INTERNAL ,
567
563
attributes : typing .Optional [types .Attributes ] = None ,
568
564
links : typing .Sequence [Link ] = (),
You can’t perform that action at this time.
0 commit comments