Skip to content

Commit e692938

Browse files
committed
Pass the correct context to the start functions
1 parent ecc5d56 commit e692938

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/src/etos_api/routers/v0/router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def start_etos(
6666
:rtype: dict
6767
"""
6868
with TRACER.start_as_current_span("start-etos", context=ctx) as span:
69-
return await _start(etos, span, ctx)
69+
return await _start(etos, span, otel_context.get_current())
7070

7171

7272
@ETOSV0.delete("/etos/{suite_id}", tags=["etos"], response_model=AbortEtosResponse)

python/src/etos_api/routers/v1alpha/router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def start_testrun(
7171
:rtype: dict
7272
"""
7373
with TRACER.start_as_current_span("start-etos", context=ctx) as span:
74-
return await _create_testrun(etos, span, ctx)
74+
return await _create_testrun(etos, span, otel_context.get_current())
7575

7676

7777
@ETOSV1ALPHA.delete("/testrun/{suite_id}", tags=["etos"], response_model=AbortTestrunResponse)

0 commit comments

Comments
 (0)