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
Describe the solution you'd like
I'd like to send json formatted http otlp events. It currently defaults to the form encoded request outlined in the requests docs. Can we set the request format via environment variables?
Additional context
The default requests post sends form encoded data. In order to support json the python http client would need the following change.
@sammerry there's another issue opened for this work: #1003. We just haven't had time to get around to implementing it yet, would love a PR if you have time for it though!
Is your feature request related to a problem?
No
Describe the solution you'd like
I'd like to send json formatted http otlp events. It currently defaults to the form encoded request outlined in the requests docs. Can we set the request format via environment variables?
Additional context
The default requests post sends form encoded data. In order to support json the python http client would need the following change.
https://github.com/open-telemetry/opentelemetry-python/blob/main/exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py#L102
The text was updated successfully, but these errors were encountered: