Skip to content

fix: exclude trace_id from sample to series label promotion#5220

Merged
marcsanmi merged 2 commits into
mainfrom
feat/exclude-trace-id-from-series-labels
Jun 2, 2026
Merged

fix: exclude trace_id from sample to series label promotion#5220
marcsanmi merged 2 commits into
mainfrom
feat/exclude-trace-id-from-series-labels

Conversation

@marcsanmi

@marcsanmi marcsanmi commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The distributor's sample split currently promotes every sample label other than span_id to a series label, indexing it in TSDB; we can see in the screenshot of this PR, where trace_id is available as a series label.

Since it has high cardinality, promoting it would inflate the series index unboundedly once the SDK PRs that emit trace_id ship.

This excludes trace_id alongside span_id in pprofsplit.VisitSampleSeries, keeping it at the sample level where the existing dedicated parquet column already stores it. Includes a regression test covering both labels.

@marcsanmi marcsanmi requested a review from a team June 1, 2026 14:27
@marcsanmi marcsanmi marked this pull request as ready for review June 1, 2026 14:27
@marcsanmi marcsanmi merged commit eb3f754 into main Jun 2, 2026
33 checks passed
@marcsanmi marcsanmi deleted the feat/exclude-trace-id-from-series-labels branch June 2, 2026 14:28
therealvio pushed a commit to chinmina/chinmina-bridge that referenced this pull request Jul 6, 2026
….6.0 (#312)

This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Adoption](https://docs.renovatebot.com/merge-confidence/) |
[Passing](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|---|---|
|
[github.com/grafana/otel-profiling-go](https://redirect.github.com/grafana/otel-profiling-go)
| `v0.5.1` → `v0.6.0` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgrafana%2fotel-profiling-go/v0.6.0?slim=true)
|
![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgrafana%2fotel-profiling-go/v0.6.0?slim=true)
|
![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgrafana%2fotel-profiling-go/v0.5.1/v0.6.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgrafana%2fotel-profiling-go/v0.5.1/v0.6.0?slim=true)
|

---

### Release Notes

<details>
<summary>grafana/otel-profiling-go
(github.com/grafana/otel-profiling-go)</summary>

###
[`v0.6.0`](https://redirect.github.com/grafana/otel-profiling-go/releases/tag/v0.6.0)

[Compare
Source](https://redirect.github.com/grafana/otel-profiling-go/compare/v0.5.3...v0.6.0)

Adds a `trace_id` pprof label for traces↔profiles correlation by trace
ID.

##### ⚠️ Compatibility

`trace_id` is emitted unconditionally and requires a Pyroscope server
with the fix from
[grafana/pyroscope#5220](https://redirect.github.com/grafana/pyroscope/pull/5220),
included in v2.1.0 or newer. On servers without it, `trace_id` is
promoted to a per-trace series label and inflates the index, so upgrade
the server first.

###
[`v0.5.3`](https://redirect.github.com/grafana/otel-profiling-go/compare/v0.5.2...v0.5.3)

[Compare
Source](https://redirect.github.com/grafana/otel-profiling-go/compare/v0.5.2...v0.5.3)

###
[`v0.5.2`](https://redirect.github.com/grafana/otel-profiling-go/compare/v0.5.1...v0.5.2)

[Compare
Source](https://redirect.github.com/grafana/otel-profiling-go/compare/v0.5.1...v0.5.2)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/chinmina/chinmina-bridge).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNDIuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI0Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

2 participants