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
-[\[Manual\] Step 3 Wrapping the Process](#manual-step-3-wrapping-the-process)
21
+
-[Component Owners](#component-owners)
22
+
23
+
</details>
24
+
8
25
## Overview
9
26
10
27
The primary goal of this API is to simplify the process of adding instrumentation to your messaging
@@ -20,15 +37,96 @@ this tool aims to streamline the tracing and monitoring process.
20
37
| kafka-clients |`[0.11.0.0,)`| process |
21
38
| aliyun mns-client |`[1.3.0,)`| process |
22
39
23
-
## Quickstart
40
+
## Quickstart For Given Implementations
41
+
42
+
This example will demonstrate how to add automatic instrumentation to your Kafka consumer with process wrapper. For
43
+
detailed example, please check out [KafkaClientTest](./kafka-clients/src/test/java/io/opentelemetry/contrib/messaging/wrappers/kafka/KafkaClientTest.java).
24
44
25
-
### Step 1 Add dependencies
45
+
### [Given]Step 1 Add dependencies
26
46
27
47
To use OpenTelemetry in your project, you need to add the necessary dependencies. Below are the configurations for both
Once the MessagingWrapper are initialized, you can wrap your message processing logic to ensure that tracing spans are
85
+
properly created and propagated.
86
+
87
+
**P.S.** Some instrumentations may also [generate process spans](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/supported-libraries.md).
88
+
If both are enabled, it might result in duplicate nested process spans. It is recommended to disable one of them.
You can also build implementations based on the `messaging-wrappers-api` for any messaging system to accommodate your
124
+
custom message protocol. For detailed example, please check out [UserDefinedMessageSystemTest](./api/src/test/java/io/opentelemetry/contrib/messaging/wrappers/UserDefinedMessageSystemTest.java).
0 commit comments