Skip to content

[prometheusexporter] disable exposition of unescaped UTF-8 names #6723

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

Closed
wants to merge 5 commits into from

Conversation

ywwg
Copy link

@ywwg ywwg commented May 1, 2025

This change prevents unexpected behavior when clients scrape requesting UTF-8. Previously the SDK would return escaped metric names, but label names would be in UTF-8 format.

In the future, a configuration option will be added to allow the user to choose to send unescaped ("untranslated") UTF-8 names.

Fixes #6722

This change prevents unexpected behavior when clients scrape requesting UTF-8.
Previously the SDK would return escaped metric names, but label names would be in UTF-8 format.

A configuration option will be added to allow the user to choose to send unescaped ("untranslated") UTF-8 names.

Fixes open-telemetry#6722
@dashpole dashpole self-assigned this May 16, 2025
@dashpole
Copy link
Contributor

This will be breaking for users that have moved to the new names. Can we instead fix issues with escaping? We can discuss adding the translation option in #6668

@ywwg
Copy link
Author

ywwg commented May 19, 2025

yes this seems to be the consensus of people. closing.

@ywwg ywwg closed this May 19, 2025
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.

[prometheusexporter] SDK uses the wrong signal to determine whether to escape
2 participants