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
An OTLP/JSON metric exporter that maps from the SDK metric data straight to tokens and never references protobuf, reusing the resource, scope and attribute mapping established for traces.
Metrics do not go through a recordable; they convert from the SDK metric data model directly. Sums, gauges, histograms and exponential histograms each need their JSON shape, and integer data points must be emitted as decimal strings.
Acceptance criteria
A metric exporter produces OTLP/JSON without referencing protobuf
Sum, gauge, histogram and exponential histogram point types are covered
Integer data points and nanosecond timestamps are emitted as decimal strings
An equivalence test asserts byte-identical JSON against the protobuf path
Resource, scope and attribute mapping is shared with traces, not duplicated
The exporter builds with the nlohmann backend excluded
Implemented in ltowarek/opentelemetry-cpp@dcae47269dc3cbd91fea366f550b4517edb550b6 ("Export traces, metrics and logs as OTLP/JSON without protobuf", branch otlp-json-no-protobuf), alongside #110 and #112. The metric exporter covers sum, gauge, histogram and exponential histogram point types, reusing the trace exporter's resource/scope/attribute mapping.
Activity
Map SDK metrics to OTLP/JSON without protobuf
Address code review of the protobuf-free metric mapping
Map SDK metrics to OTLP/JSON without protobuf
Address code review of the protobuf-free metric mapping
Map SDK metrics to OTLP/JSON without protobuf
Address code review of the protobuf-free metric mapping
ltowarek commentedon Sep 11, 2026
Implemented in
ltowarek/opentelemetry-cpp@dcae47269dc3cbd91fea366f550b4517edb550b6("Export traces, metrics and logs as OTLP/JSON without protobuf", branchotlp-json-no-protobuf), alongside #110 and #112. The metric exporter covers sum, gauge, histogram and exponential histogram point types, reusing the trace exporter's resource/scope/attribute mapping.Map SDK metrics to OTLP/JSON without protobuf
Address code review of the protobuf-free metric mapping