Make Falcon instrumentation compatible with Falcon >=3 (#607)

* Make Falcon  instrumentation compatible with Falcon >=3

Replace falcon.api.Request -> falcon.Request which exists on both Falcon 2 & 3

* Update package.py

* Update CHANGELOG.md

* update tox.ini

* revert changes to tox.ini to test failures

* Update package.py

Co-authored-by: Owais Lone <owais@users.noreply.github.com>
This commit is contained in:
Adrian Garcia Badaracco
2021-08-24 17:39:06 -05:00
committed by GitHub
parent 9c4eb69ab8
commit bfaabbf7e1
2 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
([#595](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/595))
### Changed
- `opentelemetry-instrumentation-falcon` added support for Falcon 3.
([#607](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/607))
- `opentelemetry-instrumentation-tornado` properly instrument work done in tornado on_finish method.
([#499](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/499))
- `opentelemetry-instrumentation` Fixed cases where trying to use an instrumentation package without the

View File

@ -126,7 +126,7 @@ _ENVIRON_EXC = "opentelemetry-falcon.exc"
_excluded_urls = get_excluded_urls("FALCON")
_traced_request_attrs = get_traced_request_attrs("FALCON")
_response_propagation_setter = FuncSetter(falcon.api.Response.append_header)
_response_propagation_setter = FuncSetter(falcon.Response.append_header)
class FalconInstrumentor(BaseInstrumentor):