krzko / otelgen

🤖 A tool to generate synthetic OpenTelemetry logs, metrics and traces using OTLP (gRPC and HTTP)
Apache License 2.0
82 stars 14 forks source link

Be able to send OTLP/HTTP+JSON #124

Open nullren opened 2 months ago

nullren commented 2 months ago

The OTLP spec has three different ways to send OTLP data: OTLP over gRPC, OTLP over HTTP in binary, and OTLP over HTTP in JSON. It would be useful for otelgen to use any of the three to help exercise endpoints that support any of the three.

nullren commented 2 months ago

This might be a shortcoming of https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlpmetric since otlpmetrichttp seems to be only via protobuf payloads. That's what's currently used.

krzko commented 1 month ago

Hi @nullren , I'll scope it out. At present it it sends over gRPC and HTTP (JSON). Will see what it will take to sendind in HTTP binary format as well.