open-telemetry / open-telemetry/opentelemetry-python-contrib

Django app and MySQLInstrumentor not working

Open
#1,566 5 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.