Skip to content

docs(java): Add Kafka queue tracing docs#17503

Merged
adinauer merged 9 commits into
masterfrom
feat/java-kafka-docs
May 6, 2026
Merged

docs(java): Add Kafka queue tracing docs#17503
adinauer merged 9 commits into
masterfrom
feat/java-kafka-docs

Conversation

@adinauer

Copy link
Copy Markdown
Member

Add Kafka queue tracing docs for the Java SDK

This adds a dedicated Kafka integration page for Java, covers both the
Spring Boot and raw kafka-clients paths, and links the generic queues
docs to the new page.

I kept this as a dedicated integration page instead of expanding the
generic queues page so the Kafka-specific setup, caveats, and examples
stay in one reviewable place.

This branch is written against the Java SDK PR collection branch
feat/queue-instrumentation in getsentry/sentry-java
(getsentry/sentry-java#5249). The docs also call out the current SDK
caveats around Spring producer spans and Sentry OpenTelemetry
integrations so the behavior matches that collection branch.

adinauer and others added 3 commits April 28, 2026 14:54
Document Spring Boot and raw Kafka queue tracing for the Java SDK.
Add setup guidance for sentry-kafka, document the enableQueueTracing
option, and link the manual queues docs to the new integration page.

Co-Authored-By: Claude <noreply@anthropic.com>
Clarify that Spring Boot Kafka auto-instrumentation is disabled\nwhen using Sentry OpenTelemetry integrations, and note that\nraw SentryKafkaConsumerTracing.withTracing() is not auto-\nsuppressed under OpenTelemetry.\n\nThis keeps the Kafka docs aligned with current SDK behavior\nand avoids overpromising OpenTelemetry fallback behavior.\n\nCo-Authored-By: Claude <noreply@anthropic.com>
Clarify that Spring Kafka producer spans depend on an active\ntransaction instead of implying every send creates one.\n\nThis keeps the setup section aligned with current SDK behavior\nand makes the initial guidance more precise.\n\nCo-Authored-By: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment May 6, 2026 8:29am
sentry-docs Ready Ready Preview, Comment May 6, 2026 8:29am

Request Review

Document that Spring Kafka retry count data requires the delivery attempt header and compatible retry handling. Include DefaultErrorHandler as an example without requiring apps to replace existing handlers.

Co-Authored-By: Claude <noreply@anthropic.com>
Comment thread docs/platforms/java/common/integrations/kafka.mdx
Comment thread docs/platforms/java/common/integrations/kafka.mdx Outdated
libraryDependencies += "io.sentry" % "sentry-kafka" % "{{@inject packages.version('sentry.java.kafka', '8.37.0') }}"
```

For other dependency managers, check out the [central Maven repository](https://search.maven.org/artifact/io.sentry/sentry-kafka).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@adinauer This links is 404ing for me, does it require authentication?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We haven't released it yet, it'll be there once we include sentry-kafka in a release of Java SDK.

@coolguyzone coolguyzone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Please address the 404 I commented on before merge.

Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
adinauer and others added 4 commits May 6, 2026 09:57
Add Kotlin variants for Kafka retry-count setup and consumer tracing examples. Update custom queue instrumentation docs with Kotlin examples and clarify Kafka queue instrumentation wording.

Co-Authored-By: Claude <noreply@anthropic.com>
Limit the Spring Kafka auto-instrumentation claim to record-based listeners and document that batch listeners are not supported yet.

Co-Authored-By: Claude <noreply@anthropic.com>
Mark queue tracing as available since Java SDK 8.41.0 and update Kafka dependency examples to use the first supported release.

Co-Authored-By: Claude <noreply@anthropic.com>
@adinauer adinauer merged commit 98eac93 into master May 6, 2026
18 checks passed
@adinauer adinauer deleted the feat/java-kafka-docs branch May 6, 2026 12:43
adinauer added a commit to getsentry/sentry-release-registry that referenced this pull request May 7, 2026
Add the `sentry-kafka` Maven package to the release registry as
`sentry.java.kafka`, starting with version `8.41.0`.

The Java SDK adds a standalone Kafka integration module for queue
instrumentation, and the docs reference this SDK slug for version
injection. Registering it here lets the docs and release metadata
resolve the module after the first release.

Related PRs:
- Java collection branch:
getsentry/sentry-java#5249
- Docs: getsentry/sentry-docs#17503

Co-authored-by: Claude <noreply@anthropic.com>
sentrivana pushed a commit that referenced this pull request May 18, 2026
Add Kafka queue tracing docs for the Java SDK

This adds a dedicated Kafka integration page for Java, covers both the
Spring Boot and raw `kafka-clients` paths, and links the generic queues
docs to the new page.

I kept this as a dedicated integration page instead of expanding the
generic queues page so the Kafka-specific setup, caveats, and examples
stay in one reviewable place.

This branch is written against the Java SDK PR collection branch
`feat/queue-instrumentation` in `getsentry/sentry-java`
(`getsentry/sentry-java#5249`). The docs also call out the current SDK
caveats around Spring producer spans and Sentry OpenTelemetry
integrations so the behavior matches that collection branch.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
@github-actions github-actions Bot locked and limited conversation to collaborators May 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants