Skip to content

XDSB-59841: Trace interactive task execution and delivery - #219

Closed
msmurygin wants to merge 1 commit into
cloudblue:masterfrom
msmurygin:feature/XDSB-59841-interactive-tracing
Closed

msmurygin wants to merge 1 commit into
cloudblue:masterfrom
msmurygin:feature/XDSB-59841-interactive-tracing

Conversation

@msmurygin

Copy link
Copy Markdown

Interactive validation already carries a W3C traceparent, but a gateway trace only shows when the task was sent and when its response arrived. This change continues that trace inside the events worker.

  • runner.interactive spans receipt through result delivery and carries the task ID. Connect clients created during submission forward its trace context.
  • runner.interactive.handler measures the extension method inside the coroutine or executor thread. Instrumented extension calls inherit the handler context.
  • The result.queued and result.dequeued events expose time spent waiting for the result sender. A websocket.send event identifies each send attempt. Delivery failure marks the task span as an error.

For OTLP/HTTP export, set OTEL_EXPORTER_OTLP_TRACES_ENDPOINT on the events worker and route traces to the gateway's tracing backend. Existing worker tracer providers are respected.

Verified on Python 3.12 with compilation, wheel build, flake8, and 16 tracing and event-handler tests. A local OTLP/HTTP receiver decoded an exported span and confirmed continuity of the incoming trace and parent IDs.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Maksim Smurygin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@msmurygin msmurygin closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants