feat(spring): [Queue Instrumentation 41] Add Spring Boot 2 Kafka tracing#5352
Draft
adinauer wants to merge 3 commits intofeat/queue-instrumentation-spring-boot-4from
Draft
feat(spring): [Queue Instrumentation 41] Add Spring Boot 2 Kafka tracing#5352adinauer wants to merge 3 commits intofeat/queue-instrumentation-spring-boot-4from
adinauer wants to merge 3 commits intofeat/queue-instrumentation-spring-boot-4from
Conversation
Port Kafka queue tracing to the Spring and Spring Boot 2 modules. Add Spring Kafka bean post-processors, Boot 2 auto-configuration, and matching sample system-test coverage. Co-Authored-By: Claude <noreply@anthropic.com>
Document when to load queue-specific Cursor rules and summarize how Sentry Queues data is produced by the Java SDK Kafka instrumentation. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
This was referenced Apr 30, 2026
Merged
Open
Open
This was referenced Apr 30, 2026
Open
📲 Install BuildsAndroid
|
Contributor
Performance metrics 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Stack (Queue Instrumentation)
📜 Description
Ports the Spring Boot 3 Kafka queue tracing stack changes to Spring Boot 2 as one PR.
This adds Spring Kafka support to the Spring 5 module, wires it into the Spring Boot 2 auto-configuration, and adds Boot 2 sample/system-test coverage for the regular, OTel agent, and OTel no-agent samples.
It also adds Cursor rules for queue tracing so future agent work has a high-level reference for how Sentry Queues data is produced by the Java SDK.
💡 Motivation and Context
The queue instrumentation stack added Kafka tracing for newer Spring Boot generations. Spring Boot 2 uses the Spring 5 module, so it needs the same Kafka producer/consumer bean post-processors and auto-configuration in the Boot 2 integration.
The new rules file documents when to load queue-specific guidance and summarizes the relationship between Sentry Queues, queue spans, Kafka instrumentation, and Spring Kafka auto-instrumentation.
💚 How did you test it?
./gradlew spotlessApply apiDump./gradlew :sentry-spring:test --tests '*Kafka*' :sentry-spring-boot:test --tests '*Kafka*'./gradlew :sentry-samples:sentry-samples-spring-boot:compileJava :sentry-samples:sentry-samples-spring-boot:compileTestKotlin :sentry-samples:sentry-samples-spring-boot-opentelemetry:compileJava :sentry-samples:sentry-samples-spring-boot-opentelemetry:compileTestKotlin :sentry-samples:sentry-samples-spring-boot-opentelemetry-noagent:compileJava :sentry-samples:sentry-samples-spring-boot-opentelemetry-noagent:compileTestKotlin📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
None.