Skip to content

Commit 7b3a1fe

Browse files
committed
Merge branch 'main' into httpx-sync-async-client-auto-instr-fix
# Conflicts: # CHANGELOG.md
2 parents 46a9dc6 + 7ac6744 commit 7b3a1fe

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12+
- Fix version of Flask dependency `werkzeug`
13+
([#1980](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1980))
1214
- `opentelemetry-instrumentation-httpx` Fix mixing async and non async hooks
1315
([#1920](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1920))
1416

@@ -357,7 +359,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
357359
- `opentelemetry-instrumentation-sqlalchemy` Added span for the connection phase ([#1133](https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1133))
358360
- Add metric instrumentation in asgi
359361
([#1197](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1197))
360-
- Add metric instumentation for flask
362+
- Add metric instrumentation for flask
361363
([#1186](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1186))
362364
- Add a test for asgi using NoOpTracerProvider
363365
([#1367](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1367))

instrumentation/opentelemetry-instrumentation-flask/pyproject.toml

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 6 additions & 5 deletions
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)