File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
opentelemetry-api/tests/trace/propagation Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def test_no_traceparent_header(self):
47
47
"""
48
48
output = {} # type:typing.Dict[str, typing.List[str]]
49
49
span = get_span_from_context (FORMAT .extract (get_as_list , output ))
50
- self .assertTrue ( isinstance ( span .get_context (), trace .SpanContext ) )
50
+ self .assertIsInstance ( span .get_context (), trace .SpanContext )
51
51
52
52
def test_headers_with_tracestate (self ):
53
53
"""When there is a traceparent and tracestate header, data from
@@ -188,7 +188,7 @@ def test_propagate_invalid_context(self):
188
188
"""Do not propagate invalid trace context."""
189
189
output = {} # type:typing.Dict[str, str]
190
190
ctx = set_span_in_context (
191
- trace .DefaultSpan ( trace . INVALID_SPAN_CONTEXT )
191
+ trace .INVALID_SPAN
192
192
)
193
193
FORMAT .inject (dict .__setitem__ , output , context = ctx )
194
194
self .assertFalse ("traceparent" in output )
You can’t perform that action at this time.
0 commit comments