OpenTelemetry Django Instrumentation Not Capturing ORM Spans in Django>=4.2 #3303
Unanswered
bhushan-amit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
I am setting up OpenTelemetry instrumentation in a Django project to trace ORM calls. The instrumentation works as expected with Django 4.1.13, where ORM spans are captured correctly. However, after upgrading to Django 4.2, ORM spans are no longer captured, even though other traces (like
cursor.execute
) are still visible.Details and Investigation:
db.statement
,db.system
, anddb.user
.cursor.execute
calls) are still present.Psycopg2Instrumentor()
is correctly tracing other database queries, indicating that instrumentation is active.This suggests a potential compatibility issue between Django 4.2 and OpenTelemetry Django instrumentation, possibly due to changes in Django's ORM implementation or database connection management.
Request for Help:
I would like to understand:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions