mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-03 04:10:48 +08:00
Rename DefaultSpan to NonRecordingSpan (#354)
This commit is contained in:
@ -151,7 +151,7 @@ class AwsXRayFormat(TextMapPropagator):
|
||||
)
|
||||
|
||||
return trace.set_span_in_context(
|
||||
trace.DefaultSpan(span_context), context=context
|
||||
trace.NonRecordingSpan(span_context), context=context
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
@ -56,7 +56,7 @@ def build_test_current_context(
|
||||
trace_state=DEFAULT_TRACE_STATE,
|
||||
):
|
||||
return set_span_in_context(
|
||||
trace_api.DefaultSpan(
|
||||
trace_api.NonRecordingSpan(
|
||||
build_test_span_context(
|
||||
trace_id, span_id, is_remote, trace_flags, trace_state
|
||||
)
|
||||
|
Reference in New Issue
Block a user