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

Remove incubating semconv dependency from library instrumentation #11324

Merged
merged 1 commit into from
May 15, 2024

Conversation

laurit
Copy link
Contributor

@laurit laurit commented May 9, 2024

This PR removes io.opentelemetry.semconv:opentelemetry-semconv-incubating dependency from instrumentation api and library instrumentations. Incubating semconv dependency is still used in javaagent instrumentations and tests. Library instrumentations copy the needed keys from incubating semconv classes.

@laurit laurit requested a review from a team as a code owner May 9, 2024 13:08
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label May 9, 2024
@laurit laurit added this to the v2.4.0 milestone May 9, 2024
Copy link
Member

@zeitlinger zeitlinger left a comment

Choose a reason for hiding this comment

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

what is the reason for removing the dependency?

@laurit
Copy link
Contributor Author

laurit commented May 13, 2024

what is the reason for removing the dependency?

As outlined by @jack-berg libraries should not depend on incubating semconv because there may be breaking changes in that artifact. Imagine a situation where library A depends on one version and B on another version of the incubating semconv. It is possible that no version of the incubating semconv artifact is compatible with both A and B. To avoid this we should not depend on incubating semconv in the libraries that we publish, using it is ok in javaagent code and in tests. The open question is whether we should copy the constants that we need to where we use them, as in this PR, or copy the whole classes.

@trask trask merged commit 3a9972b into open-telemetry:main May 15, 2024
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test native This label can be applied to PRs to trigger them to run native tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants