Skip to content

Support per-tenant left-padding of trace IDs#6489

Merged
mapno merged 3 commits intografana:mainfrom
mapno:left-pad-trace-ids
Feb 18, 2026
Merged

Support per-tenant left-padding of trace IDs#6489
mapno merged 3 commits intografana:mainfrom
mapno:left-pad-trace-ids

Conversation

@mapno
Copy link
Copy Markdown
Contributor

@mapno mapno commented Feb 17, 2026

What this PR does:

Adds support for left-padding trace IDs with zeros up-to 32 hex characters in search responses to comply with OTel and W3C trace context specifications. This functionality is configured per-tenant by the config param read.left_pad_trace_ids.

tenant-1:
    read:
      left_pad_trace_ids: true

Which issue(s) this PR fixes:
Fixes #5395 and #4723

Checklist

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

@mapno mapno merged commit 720fea2 into grafana:main Feb 18, 2026
24 checks passed
@mapno mapno deleted the left-pad-trace-ids branch February 18, 2026 07:05
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.

Trace IDs with leading zeros are trimmed in the Search API response (non compliant with w3c or Otel)

3 participants