Skip to content

Commit

Permalink
Polish the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-ai committed Oct 25, 2022
1 parent bc45833 commit 586cf4a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ release](https://search.maven.org/search?q=g:io.opentelemetry.instrumentation%20
For Maven, add the following to your `pom.xml` dependencies:

```xml

<dependencies>
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
Expand All @@ -38,10 +37,8 @@ RocketMqTelemetry rocketMqTelemetry;
void configure(OpenTelemetry openTelemetry, DefaultMQProducerImpl producer, DefaultMQPushConsumerImpl pushConsumer) {
rocketMqTelemetry = RocketMqTelemetry.create(openTelemetry);
// For producer.
SendMessageHook sendMessageHook = rocketMqTelemetry.newTracingSendMessageHook();
producer.registerSendMessageHook(sendMessageHook);
producer.registerSendMessageHook(rocketMqTelemetry.newTracingSendMessageHook());
// For push consumer.
ConsumeMessageHook consumeMessageHook = rocketMqTelemetry.newTracingConsumeMessageHook();
pushConsumer.registerConsumeMessageHook(consumeMessageHook);
pushConsumer.registerConsumeMessageHook(rocketMqTelemetry.newTracingConsumeMessageHook());
}
```

0 comments on commit 586cf4a

Please sign in to comment.