Repository navigation
docs(observability): document OpenTelemetry tracing config - #459
Conversation
Document TELEMETRY_TRACING_ENABLE and TELEMETRY_TRACING_OTLP_ENDPOINT in the configuration reference, and expand the Distributed Tracing section with span coverage, W3C context propagation, excluded routes, and standard OTEL_* sampling/exporter tuning. Closes #457
|
@claude Can you check if the environment variables are actually relevant with the current state of the operator? |
|
Claude finished @edenreich's task in 3m 56s —— View job Checking tracing env vars against the operator
VerdictThis PR's docs are correct - merge as-is. But I found a real mismatch in the operator that you'll want to fix separately. 1. The documented names match the gateway binary ✅The gateway reads these via Telemetry *TelemetryConfig `env:", prefix=TELEMETRY_"`
// ...
TracingEnable bool `env:"TRACING_ENABLE, default=false"` // -> TELEMETRY_TRACING_ENABLE
TracingOtlpEndpoint string `env:"TRACING_OTLP_ENDPOINT, default=http://localhost:4318"` // -> TELEMETRY_TRACING_OTLP_ENDPOINTSo the composed names are exactly 2. Operator users don't set these raw vars - they use the CRDWith the operator, tracing is configured through the Gateway CR, not raw env vars: spec:
telemetry:
enabled: true
traces:
exporter:
otlp:
endpoint: http://otel-collector:4318
protocol: http/protobufThe operator translates that into env vars on the gateway pod. That translation layer is expected - no need to document raw env vars for operator users on this page. 3.
|
## [0.9.3](0.9.2...0.9.3) (2026-07-22) ### 🐛 Bug Fixes * **configuration:** update Z-AI API URL to match canonical schema ([#443](#443)) ([2ad9f95](2ad9f95)) ### 📚 Documentation * **api-reference:** document community context-window fallback ([#450](#450)) ([be74471](be74471)) * **api-reference:** document community pricing fallback ([#449](#449)) ([3504c8f](3504c8f)) * **api-reference:** document context_window resolution for GET /v1/models include param ([#445](#445)) ([ca01a1b](ca01a1b)) * **api-reference:** document include query parameter on GET /v1/models ([#442](#442)) ([566dd19](566dd19)) * **api-reference:** document include=pricing model pricing metadata on GET /v1/models ([#446](#446)) ([88f0573](88f0573)) * **api-reference:** document subscription field in pricing metadata ([#456](#456)) ([ae251c1](ae251c1)) * document llamacpp LLAMACPP_API_KEY bearer auth ([#437](#437)) ([c8cd256](c8cd256)) * **go-sdk:** document include=context_window on ListModels and ListProviderModels ([#452](#452)) ([ec3a520](ec3a520)) * **observability:** document tracing config env vars ([#459](#459)) ([60a2cc2](60a2cc2)), closes [#457](#457) * **operator:** add GPU CRD reference page with spec, status, lifecycle, and Gateway consumption example ([#458](#458)) ([39c66e7](39c66e7)) * **operator:** add keyless Llamacpp Gateway CR example ([#431](#431)) ([2937e3c](2937e3c)) * **operator:** note llamacpp requires operator v0.19.0+ ([#433](#433)) ([eca2735](eca2735)) * **typescript-adk:** PascalCase MessageRole enum members ([#427](#427)) ([23d43bc](23d43bc)) * **typescript-sdk:** document listModels include parameter and model metadata fields ([#454](#454)) ([a0cfd8b](a0cfd8b)) ### 🔧 Miscellaneous * **deps-dev:** bump the bun group with 2 updates ([#435](#435)) ([cc8f36c](cc8f36c)) * **deps:** bump actions/setup-node in the github-actions group ([#434](#434)) ([53324e0](53324e0))
|
🎉 This PR is included in version 0.9.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Documents the two new tracing env vars added by inference-gateway/inference-gateway#483 (closes inference-gateway/inference-gateway#450).
configuration.md: addedTELEMETRY_TRACING_ENABLE(defaultfalse) andTELEMETRY_TRACING_OTLP_ENDPOINT(defaulthttp://localhost:4318) to the Telemetry settings table and the complete-config example, and clarified that tracing is a separate opt-in from metrics.observability.md: expanded the Distributed Tracing section to reflect the two-flag opt-in, and added subsections for:/healthand/v1/metrics;gen_aiprovider/model attributes on/v1/chat/completionsand/v1/messages; one child span per MCP tool execution.traceparenthonored inbound; carried outbound on provider, proxy, and MCP requests.OTEL_TRACES_SAMPLER/OTEL_EXPORTER_OTLP_*env vars.Acceptance criteria:
lint:md,format:check, andbuildall pass locally.Closes #457