open-telemetry / open-telemetry/opentelemetry-python-contrib
Django app and MySQLInstrumentor not working
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 1.1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 16
Description
Discussed in https://github.com/open-telemetry/opentelemetry-python/discussions/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, but MySQLInstrumentor().instrument() does not.
Did I missed something ?
Thanks for your help.
DeWaRs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked django-opentelemetry sample app and reproduce the difference between DjangoInstrumentor().instrument() and MySQLInstrumentor().instrument(). Compare the console output and instrumentation setup, then verify that the sample emits MySQL traces as well as Django traces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, mysql, python
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100