cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python OpenTelemetry available endpoints as only Otelcol works

Romanenkov_Al3x
DynaMight Champion
DynaMight Champion

Hello.

Trying to follow python example. https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/overview/instrumentation#python-examp...

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
 

Romanenkov_Al3x_1-1705512091835.png

 

It is working only with otelcol.

 

Regards,

Alex Romanenkov

DT_NGINX_FORCE_UNKNOWN_VERSION_INSTRUMENTATION=1
1 REPLY 1

alexander_dt
Dynatrace Helper
Dynatrace Helper

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 https://docs.dynatrace.com/docs/shortlink/otel-wt-python, 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

Featured Posts