Skip to content

Commit 19fd462

Browse files
authored
Merge branch 'main' into provide-schema-url
2 parents bd5b056 + 7ac6744 commit 19fd462

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
### Fixed
11+
12+
- Fix version of Flask dependency `werkzeug`
13+
([#1980](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1980))
14+
15+
### Added
16+
1017
- Added schema_url (`"https://opentelemetry.io/schemas/1.11.0"`) to all metrics and traces
1118
([#1977](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1977))
1219

@@ -355,7 +362,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
355362
- `opentelemetry-instrumentation-sqlalchemy` Added span for the connection phase ([#1133](https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1133))
356363
- Add metric instrumentation in asgi
357364
([#1197](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1197))
358-
- Add metric instumentation for flask
365+
- Add metric instrumentation for flask
359366
([#1186](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1186))
360367
- Add a test for asgi using NoOpTracerProvider
361368
([#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
@@ -293,7 +293,7 @@ class descendent) is being instrumented with opentelemetry. Within a
293293
SklearnInstrumentor(packages=packages).instrument()
294294
295295
296-
Model intrumentation example:
296+
Model instrumentation example:
297297
298298
.. code-block:: python
299299

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)