Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prometheusremotewriteexporter] Handle attribute collisions after sanitization #8378

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Mar 10, 2022

Description:
Fixes #7547. This follows the otel- -> prometheus specification for handling metric attributes: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/datamodel.md#metric-attributes

The key of the l map is now the sanitized attribute key, rather than the unsanitized attribute key.

Testing:

Unit test added

@dashpole dashpole requested review from a team and djaglowski March 10, 2022 16:10
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.

[prometheusremotewriteexporter] exporter can send duplicate label keys on metrics
4 participants