Skip to content

Serialization Fails for u64 Fields Due to Incoming String Values in OpenTelemetry Metrics #2487

Open
@nikhilsinhaparseable

Description

@nikhilsinhaparseable

I am using the opentelemetry-proto crate to serialize incoming OpenTelemetry metrics data. The crate defines certain fields (count, bucket_counts under HistogramDataPoint) 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions