-
Notifications
You must be signed in to change notification settings - Fork 459
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
Serialization Fails for u64 Fields Due to Incoming String Values in OpenTelemetry Metrics #2487
Comments
Which exporter are you referring to? |
I am using otel collector in opentelemetry-demo to send the otel logs, metrics and traces to Parseable. |
As per the proto-json conversion standard, u64 should be serialized to string - https://protobuf.dev/programming-guides/json/. So i believe, opentelemetry-proto is doing it correctly? |
I can see that the serialization to string is happening for the fields where below is available in the crate but this feature is not available for the mentioned fields.
|
Yes, I did realize it afterwards, and have done changes locally to test before raising PR here - |
@lalitb I see similar issue in below is the sample JSON with summary metrics - |
I am using the opentelemetry-proto crate to serialize incoming OpenTelemetry metrics data. The crate defines certain fields (
count
,bucket_counts
underHistogramDataPoint
) as u64. However, the OpenTelemetry exporter sends these fields as strings, which leads to serialization failures.This mismatch between the data types in the crate and the incoming data prevents successful serialization of metrics.
Sample JSON
otel-metrics-histogram.json
Similar issue is found in the
ExponentialHistogramDataPoint
The text was updated successfully, but these errors were encountered: