Skip to content

Commit 9d4344a

Browse files
authored
Merge branch 'main' into feature/asyncio-instrumentation
2 parents 1859cb8 + 7ac6744 commit 9d4344a

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
([#1919](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1943))
1313

1414

15+
### Fixed
16+
17+
- Fix version of Flask dependency `werkzeug`
18+
([#1980](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1980))
19+
1520
## Version 1.20.0/0.41b0 (2023-09-01)
1621

1722
### Fixed
@@ -357,7 +362,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
357362
- `opentelemetry-instrumentation-sqlalchemy` Added span for the connection phase ([#1133](https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1133))
358363
- Add metric instrumentation in asgi
359364
([#1197](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1197))
360-
- Add metric instumentation for flask
365+
- Add metric instrumentation for flask
361366
([#1186](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1186))
362367
- Add a test for asgi using NoOpTracerProvider
363368
([#1367](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1367))

instrumentation/opentelemetry-instrumentation-flask/pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dependencies = [
3636
[project.optional-dependencies]
3737
instruments = [
3838
"flask >= 1.0, < 3.0",
39+
"werkzeug < 3.0.0"
3940
]
4041
test = [
4142
"opentelemetry-instrumentation-flask[instruments]",

instrumentation/opentelemetry-instrumentation-sklearn/src/opentelemetry/instrumentation/sklearn/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
).instrument()
3636
3737
38-
Model intrumentation example:
38+
Model instrumentation example:
3939
4040
.. code-block:: python
4141
@@ -291,7 +291,7 @@ class descendent) is being instrumented with opentelemetry. Within a
291291
SklearnInstrumentor(packages=packages).instrument()
292292
293293
294-
Model intrumentation example:
294+
Model instrumentation example:
295295
296296
.. code-block:: python
297297

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

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@
8484
"library": "flask >= 1.0, < 3.0",
8585
"instrumentation": "opentelemetry-instrumentation-flask==0.42b0.dev",
8686
},
87+
"werkzeug": {
88+
"library": "werkzeug < 3.0.0",
89+
"instrumentation": "opentelemetry-instrumentation-flask==0.42b0.dev",
90+
},
8791
"grpcio": {
8892
"library": "grpcio ~= 1.27",
8993
"instrumentation": "opentelemetry-instrumentation-grpc==0.42b0.dev",

opentelemetry-instrumentation/src/opentelemetry/instrumentation/propagators.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,13 @@ def set(self, carrier, key, value): # pylint: disable=no-self-use
5959

6060

6161
class FuncSetter(Setter):
62-
"""FuncSetter coverts a function into a valid Setter. Any function that can
63-
set values in a carrier can be converted into a Setter by using FuncSetter.
64-
This is useful when injecting trace context into non-dict objects such
65-
HTTP Response objects for different framework.
62+
"""FuncSetter converts a function into a valid Setter. Any function that
63+
can set values in a carrier can be converted into a Setter by using
64+
FuncSetter. This is useful when injecting trace context into non-dict
65+
objects such HTTP Response objects for different framework.
6666
67-
For example, it can be used to create a setter for Falcon response object as:
67+
For example, it can be used to create a setter for Falcon response object
68+
as:
6869
6970
setter = FuncSetter(falcon.api.Response.append_header)
7071

0 commit comments

Comments
 (0)