opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
update flask auto instrument status utils
trafficstars
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change
- Flask AUTO instrument
Fixes # (issue)
- When auto instrumenting flask apps all request are UNSET or ERROR but no OK status for any 2XX requests
- this fixes this
Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
- [x] AUTO instrument flask app with FlaskInstrumentor().instrument_app(app=application) and hit any 200 endpoint Beforo status was UNSET after status was OK
Does This PR Require a Core Repo Change?
- [ ] Yes. - Link to PR:
- [x] No.
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.
- [x] Followed the style guidelines of this project
- [ ] Changelogs have been updated
- [ ] Unit tests have been added
- [ ] Documentation has been updated