@@ -81,7 +81,7 @@ def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
81
81
max_workers = 1
82
82
with ThreadPoolExecutor (max_workers = max_workers ) as executor :
83
83
# test propagation of the same trace context across multiple tasks
84
- with self ._tracer .start_as_current_span (f "task" ) as task_span :
84
+ with self ._tracer .start_as_current_span ("task" ) as task_span :
85
85
expected_task_context = task_span .get_span_context ()
86
86
future1 = executor .submit (
87
87
self .get_current_span_context_for_test
@@ -95,7 +95,7 @@ def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
95
95
self .assertEqual (future2 .result (), expected_task_context )
96
96
97
97
# test propagation of different trace contexts across tasks in sequence
98
- with self ._tracer .start_as_current_span (f "task1" ) as task1_span :
98
+ with self ._tracer .start_as_current_span ("task1" ) as task1_span :
99
99
expected_task1_context = task1_span .get_span_context ()
100
100
future1 = executor .submit (
101
101
self .get_current_span_context_for_test
@@ -104,7 +104,7 @@ def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
104
104
# check result
105
105
self .assertEqual (future1 .result (), expected_task1_context )
106
106
107
- with self ._tracer .start_as_current_span (f "task2" ) as task2_span :
107
+ with self ._tracer .start_as_current_span ("task2" ) as task2_span :
108
108
expected_task2_context = task2_span .get_span_context ()
109
109
future2 = executor .submit (
110
110
self .get_current_span_context_for_test
0 commit comments