@@ -24,7 +24,7 @@ def test_trace_decorator():
2424 fake_start_child .assert_not_called ()
2525 assert result == "return_of_sync_function"
2626
27- start_child_span_decorator = create_span_decorator (template = "span" )
27+ start_child_span_decorator = create_span_decorator ()
2828 result2 = start_child_span_decorator (my_example_function )()
2929 fake_start_child .assert_called_once_with (
3030 op = "function" , name = "test_decorator.my_example_function"
@@ -39,7 +39,7 @@ def test_trace_decorator_no_trx():
3939 fake_debug .assert_not_called ()
4040 assert result == "return_of_sync_function"
4141
42- start_child_span_decorator = create_span_decorator (template = "span" )
42+ start_child_span_decorator = create_span_decorator ()
4343 result2 = start_child_span_decorator (my_example_function )()
4444 fake_debug .assert_called_once_with (
4545 "Cannot create a child span for %s. "
@@ -57,7 +57,7 @@ async def test_trace_decorator_async():
5757 fake_start_child .assert_not_called ()
5858 assert result == "return_of_async_function"
5959
60- start_child_span_decorator = create_span_decorator (template = "span" )
60+ start_child_span_decorator = create_span_decorator ()
6161 result2 = await start_child_span_decorator (my_async_example_function )()
6262 fake_start_child .assert_called_once_with (
6363 op = "function" ,
@@ -74,7 +74,7 @@ async def test_trace_decorator_async_no_trx():
7474 fake_debug .assert_not_called ()
7575 assert result == "return_of_async_function"
7676
77- start_child_span_decorator = create_span_decorator (template = "span" )
77+ start_child_span_decorator = create_span_decorator ()
7878 result2 = await start_child_span_decorator (my_async_example_function )()
7979 fake_debug .assert_called_once_with (
8080 "Cannot create a child span for %s. "
0 commit comments