# Database Services with OpenTelemetry

**URL:** <https://community.dynatrace.com/t/database-services-with-opentelemetry/49325>\
**Category:** OpenTelemetry\
**Tags:** databases, opentelemetry, services\
**Created:** [December 11, 2024, 10:10pm UTC](https://community.dynatrace.com/t/database-services-with-opentelemetry/49325 "2024-12-11T22:10:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukegoyer](https://avatars.discourse-cdn.com/v4/letter/l/71e660/32.png) [@lukegoyer](https://community.dynatrace.com/u/lukegoyer)\
**Post date:** [December 11, 2024, 10:10pm UTC](https://community.dynatrace.com/t/database-services-with-opentelemetry/49325/1 "2024-12-11T22:10:20Z")

</div>

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.](https://opentelemetry.io/docs/specs/semconv/database/database-spans/#common-attributes)&nbsp;I do not see a database service represented by those spans.

The Database [detection and monitoring docs](https://docs.dynatrace.com/docs/observe/applications-and-microservices/databases/database-services-classic/how-database-activity-is-monitored#expand--database-calls-and-purepathr-technology) include&nbsp; “you will see database statements traces only if the application that makes them either sends distributed traces to the&nbsp;[OpenTelemetry trace ingest API](https://docs.dynatrace.com/docs/ingest-from/opentelemetry/getting-started/otlp-export)”.

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

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [December 12, 2024, 12:43am UTC](https://community.dynatrace.com/t/database-services-with-opentelemetry/49325/2 "2024-12-12T00:43:01Z")

</div>

Hey&nbsp;[@lukegoyer](https://community.dynatrace.com/user/58409)

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.
