[prometheusexporter] SDK uses the wrong signal to determine whether to escape #6722
Labels
bug
Something isn't working
pkg:exporter:prometheus
Related to the Prometheus exporter package
response needed
Waiting on user input before progress can be made
Description
PR 5755 added switching logic to determine when to escape prometheus names and when not to. We have since decided that relying on model.UTF8Validation is the wrong signal and we should only use an internal flag to gate that behavior. That value has also been deprecated. And, since there are bugs with how the escaping is currently performed, I suggest the SDK should always escape until we have update the spec to allow for the proper no-translation mode (open-telemetry/opentelemetry-collector-contrib#39706 (comment)).
Removing this behavior will restore the SDK to its expected behavior, which is to always escape prometheus metric and label names.
The text was updated successfully, but these errors were encountered: