You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Stable specification says "For protocols that do not natively support non-string values, non-string values SHOULD be represented as JSON-encoded strings"
Bug Report
List of all OpenTelemetry NuGet
packages and version that you are
using (e.g.
OpenTelemetry 1.0.2
):Runtime version (e.g.
net462
,net48
,netcoreapp3.1
,net6.0
etc. You canfind this information from the
*.csproj
file):net7.0
Symptom
Prometheus exporter writes boolean values as
"True"
and"False"
:What is the expected behavior?
I see the go exporter writes lower case values, e.g.
"true"
at https://github.com/open-telemetry/opentelemetry-go/blob/02616a25c68e674a04df01a1b7ba185a2db8cd5a/exporters/prometheus/testdata/counter.txt#L3 that is generated from https://github.com/open-telemetry/opentelemetry-go/blob/02616a25c68e674a04df01a1b7ba185a2db8cd5a/exporters/prometheus/exporter_test.go#L51. That seems like a more idiomatic behavior.What is the actual behavior?
The written value appears to be
bool.TrueString
andbool.FalseString
. Are these the right values?Reproduce
Create a self-contained project using the template of your choice, apply the
minimum required code to result in the issue you're observing.
We will close this issue if:
projects, so don't point us to such, please.
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: