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

Fix spring kafka interceptor wrappers not delegating some methods #10935

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Mar 22, 2024

Resolves #10934

@laurit laurit requested a review from a team March 22, 2024 12:35
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Mar 22, 2024
@@ -10,7 +10,8 @@ dependencies {

implementation(project(":instrumentation:kafka:kafka-clients:kafka-clients-common:library"))

compileOnly("org.springframework.kafka:spring-kafka:2.7.0")
// compiling against 2.8.0 to use methods that are not present in 2.7
compileOnly("org.springframework.kafka:spring-kafka:2.8.0")

Choose a reason for hiding this comment

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

If bumping to v2.8.0, does the folder and package naming need to be updated too? e.g.:

  • spring-kafka-2.7/ -> spring-kafka-2.8/
  • io/opentelemetry/javaagent/instrumentation/spring/kafka/v2_7 -> io/opentelemetry/javaagent/instrumentation/spring/kafka/v2_8

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That version number is based on the earliest supported version. Even if we compile agains 2.8 the instrumentation still works for 2.7 that we use to run tests.

@trask trask merged commit 8bb279f into open-telemetry:main Mar 26, 2024
49 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.

3 participants