Skip to content

Conversation

carles-grafana
Copy link
Contributor

@carles-grafana carles-grafana commented Feb 6, 2025

What this PR does:
Collect inspected bytes by FindByTraceId. This includes bytes from ingesters and queriers.
This is only implemented for vParquet4 for simplicity. Older formats will report 0 bytes.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@carles-grafana carles-grafana force-pushed the tracebyidSLO branch 8 times, most recently from 2eb8c2c to e2605fc Compare February 12, 2025 12:26
@carles-grafana carles-grafana changed the title wip Collect inspected bytes by FindByTraceId Feb 12, 2025
@carles-grafana carles-grafana force-pushed the tracebyidSLO branch 6 times, most recently from bc3a1fa to e4b0756 Compare February 14, 2025 10:14
@carles-grafana carles-grafana marked this pull request as ready for review February 14, 2025 10:14
}

// newTraceIDV2Handler creates a http.handler for trace by id requests
func newTraceIDV2Handler(cfg Config, next pipeline.AsyncRoundTripper[combiner.PipelineResponse], o overrides.Interface, combinerFn func(int, string) combiner.GRPCCombiner[*tempopb.TraceByIDResponse], logger log.Logger) http.RoundTripper {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I split V1 and V2 handlers as they use different combiners and collect metrics in different ways.

@mdisibio mdisibio merged commit 9633c28 into grafana:main Feb 24, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants