Skip to content

Commit

Permalink
fix: remove f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
changemyminds committed Mar 16, 2024
1 parent d0b4f73 commit 0898984
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
max_workers = 1
with ThreadPoolExecutor(max_workers=max_workers) as executor:
# test propagation of the same trace context across multiple tasks
with self._tracer.start_as_current_span(f"task") as task_span:
with self._tracer.start_as_current_span("task") as task_span:
expected_task_context = task_span.get_span_context()
future1 = executor.submit(
self.get_current_span_context_for_test
Expand All @@ -95,7 +95,7 @@ def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
self.assertEqual(future2.result(), expected_task_context)

# test propagation of different trace contexts across tasks in sequence
with self._tracer.start_as_current_span(f"task1") as task1_span:
with self._tracer.start_as_current_span("task1") as task1_span:
expected_task1_context = task1_span.get_span_context()
future1 = executor.submit(
self.get_current_span_context_for_test
Expand All @@ -104,7 +104,7 @@ def test_trace_context_propagation_in_thread_pool_with_single_worker(self):
# check result
self.assertEqual(future1.result(), expected_task1_context)

with self._tracer.start_as_current_span(f"task2") as task2_span:
with self._tracer.start_as_current_span("task2") as task2_span:
expected_task2_context = task2_span.get_span_context()
future2 = executor.submit(
self.get_current_span_context_for_test
Expand Down

0 comments on commit 0898984

Please sign in to comment.