Skip to content

test: verify driver traces join the gateway's trace in an e2e feature suite #6006

Backlog

Description

@elezar

User Story

I operate a gateway with an OTLP trace collector. I need a sandbox operation's spans in the compute driver to appear in the same trace as the gateway's request, whichever driver launched it, so that I can follow one operation across the gateway and the driver.

Description

Add an e2e features suite that runs a real gateway with a trace collector, creates a sandbox, and checks the spans the collector received. It should check that:

  • the driver's RPC spans (for example ComputeDriver/CreateSandbox) share a trace ID with the gateway's span for the same request, and the gateway's span is the driver span's parent;
  • the driver's spans carry the gateway name and the driver name as resource attributes;
  • the check passes for every compute driver that the e2e lanes cover (Docker, Podman, VM) without a per-driver test.

Context

A launched driver builds its trace exporter from the Configure request, instead of reading the process environment. The deferred export layer is tested against a collector in openshell-otel, but nothing exercises the whole chain: the gateway resolving trace settings and headers, sending them in Configure, injecting traceparent on its driver calls, and the driver's RPC layer applying it. A break in any step would put the driver's spans in a separate trace, as an earlier review comment on #5914 described. Neither the e2e testkit nor the conformance and features families have collector support yet.

Definition of Done

  • A collector fixture is available to e2e suites, for example openshell-otel-test-support started by the wrapper script and pointed to by the gateway's trace settings.
  • The suite asserts the shared trace ID, the parent span ID and the resource attributes above for each covered driver.
  • The suite runs in the existing per-driver e2e lanes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions