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

Database Services with OpenTelemetry

lukegoyer
Observer

I have a service using Python and psycopg3 utilizing the OpenTelemetry auto instrumentation and the OpenTelemetry SDK using the attributes in the semantic conventions common attributes. I do not see a database service represented by those spans.

The Database detection and monitoring docs include  "you will see database statements traces only if the application that makes them either sends distributed traces to the OpenTelemetry trace ingest API".

Are there specific attributes that need to be included or other pre-requisites to enabling that database service?

1 REPLY 1

Fin_Ubels
Dynatrace Champion
Dynatrace Champion

Hey @lukegoyer 

I believe that section of the documentation is specifically referring to seeing database statement traces and not the creation of the database entity but understandably it is misleading. As far as I can tell this is not supported with OTEL tracing at the moment.

Featured Posts