Skip to content

Commit

Permalink
instrumentation/django: fix test_trace_parent (#2338)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx authored Mar 19, 2024
1 parent dcffb58 commit c9832ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,15 @@ def response_hook(span, request, response):
self.assertIsInstance(response_hook_args[2], HttpResponse)
self.assertEqual(response_hook_args[2], response)

async def test_trace_parent(self):
def test_trace_parent(self):
id_generator = RandomIdGenerator()
trace_id = format_trace_id(id_generator.generate_trace_id())
span_id = format_span_id(id_generator.generate_span_id())
traceparent_value = f"00-{trace_id}-{span_id}-01"

Client().get(
"/span_name/1234/",
traceparent=traceparent_value,
HTTP_TRACEPARENT=traceparent_value,
)
span = self.memory_exporter.get_finished_spans()[0]

Expand Down

0 comments on commit c9832ba

Please sign in to comment.