The spec says:
For protocols that do not natively support non-string values, non-string values SHOULD be represented as JSON-encoded strings.
but it looks like the Prometheus exporter calls only Object.toString():
|
String stringValue = value.toString(); |