test(samples): [Queue Instrumentation 6] Add Kafka queue system tests#5260
Draft
adinauer wants to merge 3 commits intofeat/queue-instrumentation-autoconfigfrom
Draft
test(samples): [Queue Instrumentation 6] Add Kafka queue system tests#5260adinauer wants to merge 3 commits intofeat/queue-instrumentation-autoconfigfrom
adinauer wants to merge 3 commits intofeat/queue-instrumentation-autoconfigfrom
Conversation
Add KafkaQueueSystemTest with e2e tests for: - Producer endpoint creates queue.publish span - Consumer creates queue.process transaction - Distributed tracing (producer and consumer share same trace) - Messaging attributes on publish span and process transaction Also add produceKafkaMessage to RestTestClient and enable sentry.enable-queue-tracing in the kafka profile properties. Requires a running Kafka broker at localhost:9092 and the sample app started with --spring.profiles.active=kafka. Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Apr 2, 2026
Contributor
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. This PR will not appear in the changelog. 🤖 This preview updates automatically when you update the PR. |
Force-pushing a stack branch can cause GitHub to auto-merge or auto-close other PRs in the stack. Add explicit guidance to never use --force, --force-with-lease, or amend+push on stack branches.
Sentry Build Distribution
|
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
Add end-to-end system tests for Kafka queue instrumentation in the Spring Boot 3 sample app:
KafkaQueueSystemTest— 5 tests covering:queue.publishspanqueue.processtransactionqueue.publishspan hasmessaging.system=kafkaandmessaging.destination.name=sentry-topicqueue.processtransaction has matching messaging attributesRestTestClient.produceKafkaMessage— new helper method for hitting the/kafka/produceendpointapplication-kafka.properties— addssentry.enable-queue-tracing=trueto the kafka profile💡 Motivation and Context
PR 6 in the Queue Instrumentation stack. Validates the full stack (producer → consumer → auto-config) works end-to-end before moving to OTel and ports. Follows the existing
CacheSystemTestpattern.Infrastructure note: These tests require a running Kafka broker at
localhost:9092and the sample app started with--spring.profiles.active=kafka. They won't run in the standard CI flow until Kafka infrastructure is added to the system test pipeline.💚 How did you test it?
./gradlew :sentry-samples:sentry-samples-spring-boot-jakarta:compileTestKotlin📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
#skip-changelog