@@ -81,7 +81,7 @@ def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
8181 max_workers = 1
8282 with ThreadPoolExecutor (max_workers = max_workers ) as executor :
8383 # 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 :
8585 expected_task_context = task_span .get_span_context ()
8686 future1 = executor .submit (
8787 self .get_current_span_context_for_test
@@ -95,7 +95,7 @@ def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
9595 self .assertEqual (future2 .result (), expected_task_context )
9696
9797 # 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 :
9999 expected_task1_context = task1_span .get_span_context ()
100100 future1 = executor .submit (
101101 self .get_current_span_context_for_test
@@ -104,7 +104,7 @@ def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
104104 # check result
105105 self .assertEqual (future1 .result (), expected_task1_context )
106106
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 :
108108 expected_task2_context = task2_span .get_span_context ()
109109 future2 = executor .submit (
110110 self .get_current_span_context_for_test
0 commit comments