Skip to content

metricstarttimeprocessor: keep keys with empty values when hashing#41050

Merged
songy23 merged 1 commit into
open-telemetry:mainfrom
dashpole:keep_empty_value_attrs
Jul 11, 2025
Merged

metricstarttimeprocessor: keep keys with empty values when hashing#41050
songy23 merged 1 commit into
open-telemetry:mainfrom
dashpole:keep_empty_value_attrs

Conversation

@dashpole

@dashpole dashpole commented Jul 1, 2025

Copy link
Copy Markdown
Contributor

Description

Use standard collector pdata hashing functions when hashing attributes instead of removing attributes with empty values. Translation from Prometheus already removes empty values (because prometheus treats empty the same as non-existent).

Link to tracking issue

Fixes #38621

Testing

N/A

Documentation

N/A

@dashpole dashpole requested a review from a team as a code owner July 1, 2025 18:18
@dashpole dashpole added Skip Changelog PRs that do not require a CHANGELOG.md entry processor/metricstarttime labels Jul 1, 2025
@dashpole dashpole requested a review from evan-bradley July 1, 2025 18:18
@github-actions github-actions Bot requested a review from ridwanmsharif July 1, 2025 18:18
@dashpole dashpole force-pushed the keep_empty_value_attrs branch from 0963401 to 7a237e8 Compare July 1, 2025 18:30

@ridwanmsharif ridwanmsharif left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense to me

@dashpole dashpole added the ready to merge Code review completed; ready to merge by maintainers label Jul 11, 2025
@songy23 songy23 merged commit 48e93d6 into open-telemetry:main Jul 11, 2025
187 checks passed
@github-actions github-actions Bot added this to the next release milestone Jul 11, 2025
Dylan-M pushed a commit to Dylan-M/opentelemetry-collector-contrib that referenced this pull request Aug 5, 2025
…pen-telemetry#41050)

#### Description

Use standard collector pdata hashing functions when hashing attributes
instead of removing attributes with empty values. Translation from
Prometheus already removes empty values (because prometheus treats empty
the same as non-existent).

#### Link to tracking issue

Fixes open-telemetry#38621

#### Testing

N/A

#### Documentation

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

processor/metricstarttime ready to merge Code review completed; ready to merge by maintainers Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

metricstarttimeprocessor: investigate whether we should treat empty labels as nonexisting labels

4 participants