Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maint: Use less restrictive package version for instrumentation dependency #196

Merged
merged 1 commit into from
May 23, 2024

Conversation

MikeGoldsmith
Copy link
Contributor

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 ~ 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.

Short description of the changes

  • Update opentelemetry-instrumentation package version constraint to use the caret ^ 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.

@MikeGoldsmith MikeGoldsmith added the type: maintenance The necessary chores to keep the dust off. label May 23, 2024
@MikeGoldsmith MikeGoldsmith self-assigned this May 23, 2024
@MikeGoldsmith MikeGoldsmith requested a review from a team as a code owner May 23, 2024 12:21
@MikeGoldsmith MikeGoldsmith changed the title main: Make opentelemetry-instrumentation package version less restric… main: Use less restrictive package version for instrumentation package May 23, 2024
@MikeGoldsmith MikeGoldsmith changed the title main: Use less restrictive package version for instrumentation package main: Use less restrictive package version for instrumentation dependency May 23, 2024
@MikeGoldsmith MikeGoldsmith merged commit 1af0f15 into main May 23, 2024
4 checks passed
@MikeGoldsmith MikeGoldsmith deleted the mike/otel-deps branch May 23, 2024 12:52
@MikeGoldsmith MikeGoldsmith changed the title main: Use less restrictive package version for instrumentation dependency maint: Use less restrictive package version for instrumentation dependency May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: maintenance The necessary chores to keep the dust off.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support latest OpenTelemetry SDK
2 participants