OpenTelemetry tracing#695
Draft
ringerc wants to merge 2 commits into
Draft
Conversation
7a32a01 to
a5d1ed7
Compare
Add support for OpenTelemetry tracing to the Thanos PromQL engine. If a trace context is inherited in the go context passed to a query execution, trace spans will be emitted for: * The top level query * Storage access * Outbound calls for distributed query Trace spans include key attributes like: * Request queries or selectors * Response series and sample counts If the EnableAnalysis query option is set on the query, operation-level tracing will be performed on the query's execution. Per-operation tracing may also be enabled by setings the trace baggage field "promql.enable_analysis" to "true". Baggage-based control is used so that analysis can be controlled by a higher level in the query execution chain without having to propagate specific query options. Signed-off-by: Craig Ringer <craig.ringer@enterprisedb.com>
a5d1ed7 to
814e161
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.
This is an early LLM-assisted draft for adding OpenTelemetry tracing to the Thanos PromQL engine