From 765e588bdd29d9f971ad26c945a3436688be9f66 Mon Sep 17 00:00:00 2001 From: Tom Bentley Date: Wed, 20 Oct 2021 14:14:45 +0100 Subject: [PATCH] MINOR: Javadoc formatting for MetricsContext (#11419) The Javadoc for MetricsContext wasn't correctly formatted for nice/readable HTML output. Reviewers: Mickael Maison --- .../kafka/common/metrics/MetricsContext.java | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/clients/src/main/java/org/apache/kafka/common/metrics/MetricsContext.java b/clients/src/main/java/org/apache/kafka/common/metrics/MetricsContext.java index dcac5c289da6d..080aae673eb77 100644 --- a/clients/src/main/java/org/apache/kafka/common/metrics/MetricsContext.java +++ b/clients/src/main/java/org/apache/kafka/common/metrics/MetricsContext.java @@ -24,16 +24,23 @@ * MetricsContext encapsulates additional contextLabels about metrics exposed via a * {@link org.apache.kafka.common.metrics.MetricsReporter} * - * The contextLabels map provides following information: - * - a _namespace field indicating the component exposing metrics - * e.g. kafka.server, kafka.consumer - * {@link JmxReporter} uses this as prefix for mbean names + *

The {@link #contextLabels()} map provides following information: + *

+ *
in all components
+ *
a {@code _namespace} field indicating the component exposing metrics + * e.g. kafka.server, kafka.consumer. + * The {@link JmxReporter} uses this as prefix for MBean names
* - * - for clients and streams libraries: any freeform fields passed in via - * client properties in the form of `metrics.context.= + *
for clients and streams libraries
+ *
any freeform fields passed in via + * client properties in the form of {@code metrics.context.=}
* - * - for kafka brokers: kafka.broker.id, kafka.cluster.id - * - for connect workers: connect.kafka.cluster.id, connect.group.id + *
for kafka brokers
+ *
kafka.broker.id, kafka.cluster.id
+ * + *
for connect workers
+ *
connect.kafka.cluster.id, connect.group.id
+ *
*/ @InterfaceStability.Evolving public interface MetricsContext {