Skip to content

Conversation

@arielvalentin
Copy link
Contributor

@arielvalentin arielvalentin commented Sep 27, 2025

The instrumentation base gem already has a dependency on the API, so declaring the dependency again isn't necessary.

Removing the extra declaration in individual instrumentation gemspecs removes the need to keep all instrumentation gems in sync with each other.

What am I trying to fix?

Installing latest version of published gems and running tests
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Could not find compatible versions

Because opentelemetry-instrumentation-trilogy >= 0.62.0 depends on opentelemetry-api ~> 1.7
  and every version of opentelemetry-instrumentation-anthropic depends on opentelemetry-api ~> 1.6.0,
  opentelemetry-instrumentation-trilogy >= 0.62.0 is incompatible with opentelemetry-instrumentation-anthropic >= 0.
So, because Gemfile depends on opentelemetry-instrumentation-anthropic = 0.1.0
  and Gemfile depends on opentelemetry-instrumentation-trilogy = 0.62.0,
  version solving has failed.

The instrumentation base gem already has a dependency on the API, so declaring the dependency again isn't necessary.

Removing the extra declaration in individual instrumentation gemspecs removes the need to keep all instrumentation gems in sync with each other.
Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love this solution. thank you!

@arielvalentin arielvalentin merged commit 4672fcf into open-telemetry:main Sep 30, 2025
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants