You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/java/common/integrations/kafka.mdx
+32-2Lines changed: 32 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Kafka Integration
3
3
description: "Learn how to trace Kafka queue operations with Sentry."
4
4
---
5
5
6
-
Sentry's Kafka integration lets you trace both production and consumption. In Spring Boot, this happens automatically. If you're using raw `kafka-clients`, you'll need to instrument producers and consumers with `sentry-kafka`.
6
+
Sentry's Kafka integration lets you trace both production and consumption. In Spring Boot, this happens automatically. If you're using raw `kafka-clients`, you'll need to instrument producers and consumers with `sentry-kafka`.
7
7
8
8
Once configured, queue spans will appear in Sentry's [Queues dashboard](https://sentry.io/orgredirect/organizations/:orgslug/insights/backend/queues/).
9
9
@@ -157,6 +157,25 @@ ContainerCustomizer<Object, Object, ConcurrentMessageListenerContainer<Object, O
Copy file name to clipboardExpand all lines: docs/platforms/java/common/tracing/instrumentation/custom-instrumentation/queues-module.mdx
+99-5Lines changed: 99 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ sidebar_order: 3000
4
4
description: "Learn how to manually instrument your code to use Sentry's Queues module. "
5
5
---
6
6
7
-
Sentry comes with automatic instrumentation for the most common messaging queue systems. If you're using Kafka, see the <PlatformLinkto="/integrations/kafka/">Kafka integration</PlatformLink> — it instruments producers and consumers automatically without code changes. For other queue systems that aren't supported yet, you can still instrument custom spans and transactions around your queue producers and consumers to ensure that you have performance data about your messaging queues.
7
+
Sentry provides queue instrumentation for Kafka. If you're using Kafka, see the <PlatformLinkto="/integrations/kafka/">Kafka integration</PlatformLink> for the supported automatic and manual setup paths. For other queue systems, you can instrument custom spans and transactions around your queue producers and consumers to capture performance data about your messaging queues.
8
8
9
9
## Producer Instrumentation
10
10
@@ -20,7 +20,7 @@ Your `queue.publish` span must exist inside a transaction in order to be recogni
20
20
21
21
You must also include trace headers in your message so that your consumers can continue your trace once your message is picked up.
To start capturing performance metrics, use the `startChild()` function to wrap your queue consumers. Your span `op` must be set to `queue.process`. Include the following span data to enrich your consumer spans with queue metrics:
@@ -78,7 +120,7 @@ Your `queue.process` span must exist inside a transaction in order to be recogni
78
120
79
121
Use `Sentry.continueTrace()` to connect your consumer spans to their associated producer spans, and `setStatus()` to mark the trace of your message as success or failed.
0 commit comments