opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
add middleware_position feature in django
Description
Feature to add middleware at specific location. Added keyword argument middleware_position
which one can set to the number of middleware they want to add before otel middleware to start instrumentation.
Fixes #1781
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] This change requires a documentation update
How Has This Been Tested?
- [x]
tox -e lint
- [x]
tox -e test-instrumentation-django1
- [x]
tox -e test-instrumentation-django2
- [x]
tox -e test-instrumentation-django3
Does This PR Require a Core Repo Change?
- [x] No.
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.
- [x] Followed the style guidelines of this project
- [x] Changelogs have been updated
- [x] Unit tests have been added
- [ ] Documentation has been updated