File tree 1 file changed +5
-9
lines changed
propagator/opentelemetry-propagator-aws-xray/tests
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 27
27
from opentelemetry .sdk .trace import ReadableSpan
28
28
from opentelemetry .trace import (
29
29
Link ,
30
- TraceState ,
31
- get_current_span ,
32
30
NonRecordingSpan ,
33
31
SpanContext ,
34
- use_span
32
+ TraceState ,
33
+ get_current_span ,
34
+ use_span ,
35
35
)
36
36
37
37
@@ -45,9 +45,7 @@ def test_extract_no_environment_variable(self):
45
45
)
46
46
).get_span_context ()
47
47
48
- self .assertEqual (
49
- hex (actual_context .trace_id ), "0x0"
50
- )
48
+ self .assertEqual (hex (actual_context .trace_id ), "0x0" )
51
49
self .assertEqual (hex (actual_context .span_id ), "0x0" )
52
50
self .assertFalse (
53
51
actual_context .trace_flags .sampled ,
@@ -64,9 +62,7 @@ def test_extract_no_environment_variable_valid_context(self):
64
62
)
65
63
).get_span_context ()
66
64
67
- self .assertEqual (
68
- hex (actual_context .trace_id ), "0x1"
69
- )
65
+ self .assertEqual (hex (actual_context .trace_id ), "0x1" )
70
66
self .assertEqual (hex (actual_context .span_id ), "0x2" )
71
67
self .assertFalse (
72
68
actual_context .trace_flags .sampled ,
You can’t perform that action at this time.
0 commit comments