otlp+json enums should be integers #978
Labels
blocked
this issue is blocked by another issue.
pinned
Will not be removed by stalebot
Work In Progress
This is a Work in Progress, not ready to be merged
The otel collector currently accepts the string values of ENUMs for json-encoded payloads, but this is now prohibited and will likely be removed in a future collector release:
We currently use protobuf's
serializeToJsonString()
method to generate JSON payloads, which doesn't expose any options to represent enums as their integer values.Possible solutions:
Additional context
Protobuf Ruby seems to support FormatEnumsAsIntegers
There is a partial implementation in the protobuf php extension for FormatEnumsAsIntegers, but it is not exposed via any public interfaces (and not available in the native library)
Tasks:
ProtobufSerializer
to send new flag(s)The text was updated successfully, but these errors were encountered: