Stat sinks: Allow OpenTelemetry sink to export via HTTP
- Dominant language
- C++
- Stars
- 28.9k
- Forks
- 5.6k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 437
Description
*Title*: *Allow OpenTelemetry sink to export via HTTP*
*Description*:
Similar to what was done for tracing, the stat sink for OpenTelemetry today only allow exporting via gRPC. This limits users to require either a back-end that handles OTLP/gRPC or deploy a OTel collector to do the conversion from gRPC to HTTP.
It would be nice if the stat sink could be configured to export via HTTP, allowing it to directly export to a back-end that supports OTLP/HTTP.
The sink is helpful, for example in troubleshooting to see if [spans are being exported or not](https://github.com/envoyproxy/envoy/blob/main/source/extensions/tracers/opentelemetry/tracer.h#L27).
[optional *Relevant Links*:]
- HTTP should be the default one, according to the [OTel spec](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.28.0/specification/protocol/exporter.md#specify-protocol)
> SDKs SHOULD support both grpc and http/protobuf transports and MUST support at least one of them. If they support only one, it SHOULD be http/protobuf. They also MAY support http/json.
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/10206
Contributor guide
Assessment
This issue has not been assessed yet.