opentelemetry-cpp icon indicating copy to clipboard operation
opentelemetry-cpp copied to clipboard

[EXPORTER] Change OTLP HTTP content_type default to binary

Open marcalff opened this issue 1 year ago • 0 comments

The OTLP HTTP exporter uses JSON by default.

According to the spec, the export format by default should be BINARY instead.

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#specify-protocol

If no configuration is provided the default transport SHOULD be http/protobuf unless SDKs have good reasons to choose grpc as the default (e.g. for backward compatibility reasons when grpc was already the default in a stable SDK release).

Issue found by kkuehl in PR #2480

marcalff avatar Jan 11 '24 00:01 marcalff