Skip to content

Protect span metrics target_info against resource attributes with empty key - #5148

Merged
mdisibio merged 2 commits into
grafana:mainfrom
mdisibio:generator-empty-labels
May 22, 2025
Merged

Protect span metrics target_info against resource attributes with empty key#5148
mdisibio merged 2 commits into
grafana:mainfrom
mdisibio:generator-empty-labels

Conversation

@mdisibio

@mdisibio mdisibio commented May 21, 2025

Copy link
Copy Markdown
Contributor

What this PR does:
It is technically possible to send a resource attribute with an empty key over the wire, and these cause issues for span metrics target_info. It will lead to invalid label errors downstream in metrics datasources. This skips over them.

Note - Target info pulls in all resource attributes dynamically (minus any exclusions). So I think it is ok to skip silently here. Versus, for the regular span metrics, dimensions are configured explicitly. In that case I think the current behavior of bubbling those errors up is preferred.

Which issue(s) this PR fixes:
Fixes #5151

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
@mdisibio
mdisibio merged commit 2cd4295 into grafana:main May 22, 2025
mattdurham pushed a commit to mattdurham/tempo that referenced this pull request Jun 18, 2026
…ty key (grafana#5148)

* Protect span metrics target_info against resource attributes with empty key

* changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants