Rename DefaultSpan to NonRecordingSpan (#354)

This commit is contained in:
Leighton Chen
2021-03-02 10:30:52 -08:00
committed by GitHub
parent e57dec8854
commit 79809976d5
6 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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
)