Python OpenTelemetry available endpoints as only Otelcol works

Hello.

Trying to follow python example. OpenTelemetry and Dynatrace — Dynatrace Docs

Please confirm that there is no possibility send python traces without otelcol

Failed to export traces, error code: StatusCode.UNKNOWN

If it possible can anybody share working configuration.

I have tried different endpoints -

  • /api/v2/otlp/v1/traces
  • /api/v2/otlp
  • OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
  • OTEL_EXPORTER_OTLP_ENDPOINT
  • OneAgent endpoint
  • Managed Cluster
  • Env AG
  • Cluster AG

It is working only with otelcol.

Regards,

Alex Romanenkov

Hi Alex,

that’s right, this particular example focuses on a gRPC export to a local Collector instance.

If you prefer to export straight to an ActiveGate or OneAgent (attention, the latter only supports traces for the time being), you could follow the guides at Automatically instrument your Python application with OpenTelemetry — Dynatrace Docs, which focus on HTTP exports and explain which URLs you need, which parameters need to be configured, and which token scopes are necessary.

Best,

Alexander