Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit 1af0f15

Browse files
main: Use less restrictive package version for instrumentation dependency (#196)
## Which problem is this PR solving? The dependency on `opentelemetry-instrumentation` is overly restrictive and doesn't allow later minor versions to be used. For example, it's set as `~0.43b0` but doesn't allow the latest releases `0.44b0` or `0.45b0`. This is because the [tilde](https://python-poetry.org/docs/dependency-specification/#tilde-requirements) `~` version constraint doesn't allow versions that change within the same semver point specified. The version we set is `0.43b0`, which means it can't go higher than minor release `0.43b0` and subsequent packages are minor releases. It would allow patch version of the same minor if they were published, eg `0.43b0.x`. - Closes #195 ## Short description of the changes - Update `opentelemetry-instrumentation` package version constraint to use the [caret](https://python-poetry.org/docs/dependency-specification/#caret-requirements) `^` prefix instead, which is equivalent to >= 0.43b0 and < 1.0 ## How to verify that this has the expected result Later version of opentelemetry-instrumentation package can be used with the distro.
1 parent eb41cd2 commit 1af0f15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ python = "^3.7, >= 3.7.2"
2424
opentelemetry-api = "^1.22.0"
2525
opentelemetry-sdk = "^1.22.0"
2626
opentelemetry-exporter-otlp = "^1.22.0"
27-
opentelemetry-instrumentation = "~0.43b0"
27+
opentelemetry-instrumentation = "^0.43b0"
2828

2929
[tool.poetry.group.dev.dependencies]
3030
coverage = ">=6.5,<8.0"

0 commit comments

Comments
 (0)