You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3f17b08
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): normalize trace-context env reading and cover interceptor composition
Review follow-ups on the trace-context forwarding feature:
- Normalize each TRACEPARENT/TRACESTATE spelling (trim, drop blanks)
before the lower-case fallback so a blank upper-case value no longer
shadows a valid lower-case one
- Share one env-reading helper between EnvTraceContextInterceptor and
set_parent_from_environment so both paths agree on what counts as set
- Pass the TRACEPARENT_ENV/TRACESTATE_ENV constants instead of duplicated
string literals
- Log at debug level when a present TRACEPARENT is invalid, keeping the
passive no-op behavior but leaving a grep-able signal
- Cover EnvTraceContext::from_env (both spellings, padding, blanks) and
the GatewayInterceptor auth+trace composition with tests
- Drop tracestate when traceparent is invalid, and assert it in tests
- Narrow the traces.mdx claim to standard CLI commands, since term and
completions build clients without the trace interceptor
Signed-off-by: Chris Moore <cmoore@redhat.com>
Copy file name to clipboardExpand all lines: docs/observability/traces.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ Give each installation that reports to the same collector its own name, includin
69
69
70
70
The gateway continues a valid W3C `traceparent` sent by the caller, so a client's trace can include the gateway's spans for its requests. Without one, the gateway starts a new trace.
71
71
72
-
The CLI forwards `TRACEPARENT` and `TRACESTATE` from its environment on every gateway request. A CI system that exports these variables (GitHub Actions, GitLab CI, Jenkins OpenTelemetry plugins) therefore parents the gateway's spans for the commands it runs, with no collector or provider configuration on the CI runner.
72
+
The CLI forwards `TRACEPARENT` and `TRACESTATE` from its environment on gateway requests from its standard commands. A CI system that exports these variables (GitHub Actions, GitLab CI, Jenkins OpenTelemetry plugins) therefore parents the gateway's spans for the commands it runs, with no collector or provider configuration on the CI runner.
73
73
74
74
The gateway also passes its trace context to compute drivers, so driver spans appear in the same trace as the gateway request that caused them. Built-in drivers export their spans through the gateway's process. Managed external drivers receive the trace endpoint, gateway name, and compute driver from the gateway. Drivers that you run yourself own their telemetry configuration.
0 commit comments