Skip to content

Commit 74fece8

Browse files
Inject context into span to avoid it being orphaned.
Co-authored-by: Kenny Trytek <kenny.trytek@workiva.com>
1 parent 4f922a2 commit 74fece8

File tree

1 file changed

+1
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server

1 file changed

+1
-0
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ async def middleware(request, handler):
205205

206206
with tracer.start_as_current_span(
207207
span_name,
208+
context=extract(request, getter=getter),
208209
kind=trace.SpanKind.SERVER,
209210
) as span:
210211
attributes = collect_request_attributes(request)

0 commit comments

Comments
 (0)