From 586cf4a2f0822cfb4184f8bfb36331a7d11ab333 Mon Sep 17 00:00:00 2001 From: Aaron Ai Date: Tue, 25 Oct 2022 13:17:39 +0800 Subject: [PATCH] Polish the docs --- .../rocketmq-client/rocketmq-client-4.8/library/README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/instrumentation/rocketmq/rocketmq-client/rocketmq-client-4.8/library/README.md b/instrumentation/rocketmq/rocketmq-client/rocketmq-client-4.8/library/README.md index 73761eab77c0..4e0d976f4c30 100644 --- a/instrumentation/rocketmq/rocketmq-client/rocketmq-client-4.8/library/README.md +++ b/instrumentation/rocketmq/rocketmq-client/rocketmq-client-4.8/library/README.md @@ -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 - io.opentelemetry.instrumentation @@ -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()); } ```