feat(monitoring): opt-in gateway distributed tracing + Tempo in telemetry playground#414
Draft
udsmicrosoft wants to merge 3 commits into
Draft
Conversation
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (playground, controllers, docs, test, api, manifests); effort from diff stats (593+38 LOC, 18 files); LLM failed: Invalid response body while trying to fetch https://api.anthropic.com/v1/messages: Premature close If a label is wrong, remove it manually and ping |
Signed-off-by: urismiley <urismiley@microsoft.com>
… local playground Signed-off-by: urismiley <urismiley@microsoft.com>
…integration Signed-off-by: urismiley <urismiley@microsoft.com>
f0c0fa4 to
af6c34c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds opt-in distributed tracing to the DocumentDB monitoring stack, alongside the existing metrics path, and wires it end-to-end in the local telemetry playground.
Metrics are scraped by Prometheus from each per-pod OTel sidecar. Traces cannot be scraped — each sidecar pushes spans (OTLP/gRPC) to a central trace backend. This PR adds that push path plus a Tempo backend in the playground.
Operator changes
spec.monitoring.tracingstanza —enabled,otlpEndpoint,sqlCommenterEnabled(TracingSpec), with regenerated CRD + deepcopy.internal/otel/config.go): adds atracespipeline (otlpreceiver →resource/batch→otlp/tracesexporter) that pushes spans totracing.otlpEndpoint. Metrics and traces pipelines coexist.gatewayTracingEnabled/gatewaySqlCommenterEnabledplugin params, and the injector addsOTEL_TRACES_ENABLED=true(and optionallyDOCUMENTDB_SQL_COMMENTER_ENABLED=true) to the gateway container.Playground changes (
documentdb-playground/telemetry/local/)observabilitynamespace (monolithic, OTLP in / query out).spec.monitoring.tracing.deploy.shacceptsDOCUMENTDB_VERSIONto pull a tracing-capable gateway image;validate.shchecks Tempo readiness + gateway spans.Known limitation (why this is a draft)
Tracing requires a gateway image built with OTLP trace support (gateway ≥ 0.115). The operator's default gateway image (
0.110.0) predates it, and nogateway:0.115.0is published to GHCR yet. Until a tracing-capable operator gateway image exists:validate.shreports this as a warning, not a failure).Validation done
go vetclean.bash -n.Branch is merged up to date with
main(incl. the domain-groupedDocumentDBSpecAPI change).