Skip to content

Psycopg2Instrumentor Django not collect database queries and hits #2989

Discussion options

You must be logged in to vote

lol Finally working....

What was cheating me was another instrumentation package called autodynatrace

This package provides instrumentation for APM Dynatrace, with it installed the project had a wrapper overrided from psycopg2 opentelemetry wrapper cursor with what this library uses.

In the end... uninstalling the library, I was able to see the instrumentation made by opentelemetry in jaeger õ/

Lesson learned:

  • Don't use two instrumentation libraries in the project.
  • The psycopg2 library works with psycopg2-binary as well as long as the skip_dep_check=True flag is used as an instrument parameter.

how was it in the project:
tracing.py

import logging

from opentelemetry import trace
from o…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MatheusGeiger
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MatheusGeiger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants