Skip to content

Commit

Permalink
Inject context into span to avoid it being orphaned.
Browse files Browse the repository at this point in the history
Co-authored-by: Kenny Trytek <kenny.trytek@workiva.com>
  • Loading branch information
decko and kennytrytek-wf authored Jun 23, 2023
1 parent 4f922a2 commit 74fece8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ async def middleware(request, handler):

with tracer.start_as_current_span(
span_name,
context=extract(request, getter=getter),
kind=trace.SpanKind.SERVER,
) as span:
attributes = collect_request_attributes(request)
Expand Down

0 comments on commit 74fece8

Please sign in to comment.