From 78d364792281fa8669d66982dfe3ec309d58e9c7 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sun, 7 Jan 2024 16:50:55 +0800 Subject: [PATCH] feedback Signed-off-by: Adrian Cole --- .../main/java/zipkin2/reporter/activemq/ActiveMQSender.java | 4 ++-- .../src/main/java/zipkin2/reporter/amqp/RabbitMQSender.java | 4 ++-- core/src/main/java/zipkin2/reporter/AsyncReporter.java | 3 ++- kafka/src/main/java/zipkin2/reporter/kafka/KafkaSender.java | 4 ++-- .../src/main/java/zipkin2/reporter/okhttp3/OkHttpSender.java | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/activemq-client/src/main/java/zipkin2/reporter/activemq/ActiveMQSender.java b/activemq-client/src/main/java/zipkin2/reporter/activemq/ActiveMQSender.java index be1ee485..6735271a 100644 --- a/activemq-client/src/main/java/zipkin2/reporter/activemq/ActiveMQSender.java +++ b/activemq-client/src/main/java/zipkin2/reporter/activemq/ActiveMQSender.java @@ -19,7 +19,6 @@ import javax.jms.JMSException; import javax.jms.QueueSender; import org.apache.activemq.ActiveMQConnectionFactory; -import zipkin2.reporter.AsyncReporter; import zipkin2.reporter.BytesMessageEncoder; import zipkin2.reporter.Call; import zipkin2.reporter.Callback; @@ -33,7 +32,8 @@ * *

Usage

*

- * This type is designed for {@link AsyncReporter.Builder#builder(Sender) the async reporter}. + * This type is designed for {@link zipkin2.reporter.AsyncReporter.Builder#builder(Sender) the async + * reporter}. * *

Here's a simple configuration, configured for json: * diff --git a/amqp-client/src/main/java/zipkin2/reporter/amqp/RabbitMQSender.java b/amqp-client/src/main/java/zipkin2/reporter/amqp/RabbitMQSender.java index 1c9e0c8d..baed1fa1 100644 --- a/amqp-client/src/main/java/zipkin2/reporter/amqp/RabbitMQSender.java +++ b/amqp-client/src/main/java/zipkin2/reporter/amqp/RabbitMQSender.java @@ -21,7 +21,6 @@ import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeoutException; -import zipkin2.reporter.AsyncReporter; import zipkin2.reporter.BytesMessageEncoder; import zipkin2.reporter.Call; import zipkin2.reporter.Callback; @@ -37,7 +36,8 @@ * *

Usage

*

- * This type is designed for {@link AsyncReporter.Builder#builder(Sender) the async reporter}. + * This type is designed for {@link zipkin2.reporter.AsyncReporter.Builder#builder(Sender) the async + * reporter}. * *

Here's a simple configuration, configured for json: * diff --git a/core/src/main/java/zipkin2/reporter/AsyncReporter.java b/core/src/main/java/zipkin2/reporter/AsyncReporter.java index 30a58123..a655afe4 100644 --- a/core/src/main/java/zipkin2/reporter/AsyncReporter.java +++ b/core/src/main/java/zipkin2/reporter/AsyncReporter.java @@ -33,7 +33,8 @@ * * @param type of the span, usually {@link zipkin2.Span} */ -public final class AsyncReporter extends Component implements Reporter, Flushable { +// This is effectively, but not explicitly final as it was not final in version 2.x. +public class AsyncReporter extends Component implements Reporter, Flushable { /** * Builds a json reporter for Zipkin V2. If http, diff --git a/kafka/src/main/java/zipkin2/reporter/kafka/KafkaSender.java b/kafka/src/main/java/zipkin2/reporter/kafka/KafkaSender.java index a861321f..df88069f 100644 --- a/kafka/src/main/java/zipkin2/reporter/kafka/KafkaSender.java +++ b/kafka/src/main/java/zipkin2/reporter/kafka/KafkaSender.java @@ -26,7 +26,6 @@ import org.apache.kafka.clients.producer.RecordMetadata; import org.apache.kafka.common.KafkaFuture; import org.apache.kafka.common.serialization.ByteArraySerializer; -import zipkin2.reporter.AsyncReporter; import zipkin2.reporter.AwaitableCallback; import zipkin2.reporter.BytesMessageEncoder; import zipkin2.reporter.Call; @@ -41,7 +40,8 @@ * *

Usage

*

- * This type is designed for {@link AsyncReporter.Builder#builder(Sender)} the async reporter}. + * This type is designed for {@link zipkin2.reporter.AsyncReporter.Builder#builder(Sender) the async + * reporter}. * *

Here's a simple configuration, configured for json: * diff --git a/okhttp3/src/main/java/zipkin2/reporter/okhttp3/OkHttpSender.java b/okhttp3/src/main/java/zipkin2/reporter/okhttp3/OkHttpSender.java index b3a535a8..53d39f6f 100644 --- a/okhttp3/src/main/java/zipkin2/reporter/okhttp3/OkHttpSender.java +++ b/okhttp3/src/main/java/zipkin2/reporter/okhttp3/OkHttpSender.java @@ -30,7 +30,6 @@ import okio.BufferedSink; import okio.GzipSink; import okio.Okio; -import zipkin2.reporter.AsyncReporter; import zipkin2.reporter.CheckResult; import zipkin2.reporter.ClosedSenderException; import zipkin2.reporter.Encoding; @@ -43,7 +42,8 @@ * *

Usage

*

- * This type is designed for {@link AsyncReporter.Builder#builder(Sender) the async reporter}. + * This type is designed for {@link zipkin2.reporter.AsyncReporter.Builder#builder(Sender) the async + * reporter}. * *

Here's a simple configuration, configured for json: *