Skip to content

Collect inspected bytes by FindByTraceId - #4668

Merged
mdisibio merged 1 commit into
grafana:mainfrom
carles-grafana:tracebyidSLO
Feb 24, 2025
Merged

Collect inspected bytes by FindByTraceId#4668
mdisibio merged 1 commit into
grafana:mainfrom
carles-grafana:tracebyidSLO

Conversation

@carles-grafana

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

Copy link
Copy Markdown
Contributor

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 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
Copy Markdown
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.

Comment thread modules/frontend/combiner/trace_by_id.go
Comment thread modules/frontend/combiner/trace_by_id.go Outdated
Comment thread modules/frontend/combiner/trace_by_id_v2.go
Comment thread modules/frontend/traceid_handlers.go
Comment thread modules/ingester/instance.go
Comment thread tempodb/encoding/vparquet4/block_findtracebyid.go Outdated
@mdisibio
mdisibio merged commit 9633c28 into grafana:main Feb 24, 2025
mattdurham pushed a commit to mattdurham/tempo that referenced this pull request Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants