Skip to content

Commit 721490e

Browse files
committed
Merge remote-tracking branch 'upstream/main' into pymongo-capture-statement-more-commands, fix CHANGELOG conflict
2 parents 8c0b5da + 7ac6744 commit 721490e

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
@@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- `opentelemetry-instrumentation-pymongo` Add full command statement capturing for additional command types
1212
([#1955](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1955))
1313

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

1621
### Fixed
@@ -356,7 +361,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
356361
- `opentelemetry-instrumentation-sqlalchemy` Added span for the connection phase ([#1133](https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1133))
357362
- Add metric instrumentation in asgi
358363
([#1197](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1197))
359-
- Add metric instumentation for flask
364+
- Add metric instrumentation for flask
360365
([#1186](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1186))
361366
- Add a test for asgi using NoOpTracerProvider
362367
([#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)