-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django app and MySQLInstrumentor not working #1566
Comments
@DeWaRs1206 I think I hit the same problem which was a result of not using the python impl. of mysql connector. https://github.com/DeWaRs1206/django-opentelemetry/blob/master/blog/settings.py#L78 Try setting https://dev.mysql.com/doc/connector-python/en/connector-python-django-backend.html This relies on the More info here:https://docs.djangoproject.com/en/4.1/ref/databases/#mysql-db-api-drivers Note, I would imagine switching to the native python impl. would have a performance hit.... I don't know if I've missed any docs/examples from open-telemetry...but this wasn't obvious to me and took a while to figure out :) |
After further reading..is it that The original setup was using the underlying
|
Hello @nabadger, Thanks for the details.
But after loading my application, Django raise an
Collection seems to work before the crash ... I wasn't able to find a solution for this ... |
@DeWaRs1206 I have the same issue - looks like it's #1319 The associated MR has recent activty, so fingers crossed :) |
@nabadger thanks for the update. I applied the proposed patch on my DEV instance, things are working better but I have a lot of DB errors now. Lock timeout, deadlock, which is pretty weird... |
Discussed in open-telemetry/opentelemetry-python#3082
Originally posted by DeWaRs1206 December 9, 2022
Hello,
I'm not able to collect MySQL trace using MySQLInstrumentor on a django App.
I created a very simple sample app here: https://github.com/DeWaRs1206/django-opentelemetry to reproduce.
Basically
DjangoInstrumentor().instrument()
is showing data in the console, butMySQLInstrumentor().instrument()
does not.Did I missed something ?
Thanks for your help.
DeWaRs
The text was updated successfully, but these errors were encountered: