Repository navigation
test(kafka): [Sample Tests 34] Add an end-to-end test of the raw Kafka client's tracing - #6326
Draft
runningcode wants to merge 1 commit into
Draft
runningcode wants to merge 1 commit into
runningcode wants to merge 1 commit into
Conversation
This was referenced Oct 20, 2026
Draft
Draft
Draft
Draft
Draft
This was referenced Oct 20, 2026
Draft
📲 Install BuildsAndroid
|
This was referenced Oct 20, 2026
Draft
Draft
runningcode
force-pushed
the
no/kafka-integration-test
branch
from
October 21, 2026 09:19
0cf5a13 to
da50664
Compare
runningcode
force-pushed
the
no/async-profiler-integration-test
branch
from
October 21, 2026 09:19
99dd98a to
b14e667
Compare
SentryKafkaEndToEndTest publishes a message through a wrapped KafkaProducer to an in-JVM KRaft broker, consumes it with SentryKafkaConsumerTracing, and checks what reaches MockSentryServer: the queue.publish span in the producing transaction, and a queue.process transaction with the consumer origin and the Kafka system that continues the producer's trace. It ports the Kafka part of the console sample's system test, which needed a Redpanda container. The broker comes from spring-kafka-test 3, which needs Java 17, so the test classpaths resolve Java 17 variants. The tests run on it anyway. With its core, profiling and Kafka parts ported, the console sample has no system test left, so it comes off the system-test runner and the backend workflow, whose base row moves to the console OTLP sample. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
runningcode
force-pushed
the
no/kafka-integration-test
branch
from
October 21, 2026 11:27
da50664 to
f89b006
Compare
runningcode
force-pushed
the
no/async-profiler-integration-test
branch
from
October 21, 2026 11:27
b14e667 to
dfb3bba
Compare
This branch has not been deployed
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 (Sample Tests)
main)📜 Description
Adds
SentryKafkaEndToEndTesttosentry-kafka. It ports the Kafka part ofsentry-samples-console's system test, which ran the sample's JAR against a Redpanda container. The test publishes a message throughSentryKafkaProducer.wrap(KafkaProducer)to an in-JVM KRaft broker, consumes it withSentryKafkaConsumerTracing.withTracing, and checks what reachesMockSentryServer:queue.publishspan;queue.processtransaction with themanual.queue.kafka.consumerorigin andmessaging.system=kafka;Java 17 for the test classpaths. The broker comes from spring-kafka-test 3, without a Spring application. It needs Java 17, while
sentry-kafkatargets Java 8, so Gradle refused to resolve it. The module's test classpaths now resolve Java 17 variants; the tests run on Java 17 anyway. spring-kafka-test 2.8, which supports Java 8, brings a Kafka 3.1 broker that would clash with the 3.8 client the module tests against.The console sample is retired. With #6324 (core) and #6325 (profiling), all of the sample's test is now in modules, so the sample comes off the runner and the backend workflow. It also drops its Kotlin plugin, which only the test needed. Its JCache demo had no assertions, so nothing about it moves. The workflow's base row moves to
sentry-samples-console-otlp. No remaining sample needs a broker, so the runner's Kafka set is empty; the runner itself goes in the cleanup PRs.💡 Motivation and Context
The raw-client Kafka integration now runs end to end in
./gradlew :sentry-kafka:test, in about 3 seconds, without Docker.💚 How did you test it?
:sentry-kafka:checkpasses, and the sample's JAR still builds.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
The OpenTelemetry console samples (
console-opentelemetry-noagent,console-otlp) andspring-boot-4-otlp.#skip-changelog
🤖 Generated with Claude Code