Hi, team! I have Django app, run by uwsgi. I conne...
# support
к
Hi, team! I have Django app, run by uwsgi. I connect app to Selfhosted Signoz by opentelemetry.instrumentation.wsgi.OpenTelemetryMiddleware and use postfork. But in Traces I don't have any information about db queries. what am i doing wrong?
image.png
p
You'll have to include instrumentation for your database separately by installing the pip module for its instrumentation (Sometimes it is packaged along with your database module) and call the
instrument()
method. For MySQL, you can find the instructions here https://dev.mysql.com/doc/connector-python/en/connector-python-opentelemetry.html
к
p
Yes
к
Thank you, @Prashanth Banda! It works. In advance, I found good example, how to include instrumentation to Django app, maybe it will be useful for somebody: https://github.com/open-telemetry/opentelemetry-python/discussions/2989