Skip to content

Commit 9c81eda

Browse files
authored
Include Flask 2.0 as compatible with existing flask instrumentation (#545)
1 parent 63e7561 commit 9c81eda

File tree

3 files changed

+4
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask
  • opentelemetry-instrumentation/src/opentelemetry/instrumentation

3 files changed

+4
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v1.3.0-0.22b0...HEAD)
9+
- Include Flask 2.0 as compatible with existing flask instrumentation
10+
([#545](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/545))
911

1012
### Changed
1113
- `opentelemetry-instrumentation-tornado` properly instrument work done in tornado on_finish method.

instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/package.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515

16-
_instruments = ("flask ~= 1.0",)
16+
_instruments = ("flask >= 1.0, < 3.0",)

opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"instrumentation": "opentelemetry-instrumentation-fastapi==0.23.dev0",
6262
},
6363
"flask": {
64-
"library": "flask ~= 1.0",
64+
"library": "flask >= 1.0, < 3.0",
6565
"instrumentation": "opentelemetry-instrumentation-flask==0.23.dev0",
6666
},
6767
"grpcio": {

0 commit comments

Comments
 (0)