What problem do you want to solve?
It's common to see user-defined middleware in Django - https://docs.djangoproject.com/en/5.2/topics/http/middleware/#writing-your-own-middleware
At present, the django instrumentor does not automatically capture them as spans, leaving large gaps of unaccounted time in the trace for applications that use them:
Describe the solution you'd like
Automated creation of spans for middleware calls in django.
Describe alternatives you've considered
Additional Context
No response
Would you like to implement a fix?
None
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
What problem do you want to solve?
It's common to see user-defined middleware in Django - https://docs.djangoproject.com/en/5.2/topics/http/middleware/#writing-your-own-middleware
At present, the django instrumentor does not automatically capture them as spans, leaving large gaps of unaccounted time in the trace for applications that use them:
Describe the solution you'd like
Automated creation of spans for middleware calls in django.
Describe alternatives you've considered
Manual creation of spans
Decorating middleware functions
Additional Context
No response
Would you like to implement a fix?
None
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it. Learn more here.