From 944ee84a3d38194ea39f0f26d231600b47ee750b Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sat, 5 Nov 2022 10:21:32 +0900 Subject: [PATCH] Fix typos (#7044) This PR fixes typos. --- .../kafka/internal/KafkaMetricRegistry.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/instrumentation/kafka/kafka-clients/kafka-clients-common/library/src/main/java/io/opentelemetry/instrumentation/kafka/internal/KafkaMetricRegistry.java b/instrumentation/kafka/kafka-clients/kafka-clients-common/library/src/main/java/io/opentelemetry/instrumentation/kafka/internal/KafkaMetricRegistry.java index 57ec1290a0..ae7d1b1050 100644 --- a/instrumentation/kafka/kafka-clients/kafka-clients-common/library/src/main/java/io/opentelemetry/instrumentation/kafka/internal/KafkaMetricRegistry.java +++ b/instrumentation/kafka/kafka-clients/kafka-clients-common/library/src/main/java/io/opentelemetry/instrumentation/kafka/internal/KafkaMetricRegistry.java @@ -29,7 +29,7 @@ import org.apache.kafka.common.metrics.Measurable; final class KafkaMetricRegistry { private static final Set groups = new HashSet<>(Arrays.asList("consumer", "producer")); - private static final Map, String> measureableToInstrumentType = new HashMap<>(); + private static final Map, String> measurableToInstrumentType = new HashMap<>(); private static final Map descriptionCache = new ConcurrentHashMap<>(); static { @@ -51,7 +51,7 @@ final class KafkaMetricRegistry { for (Map.Entry entry : classNameToType.entrySet()) { try { - measureableToInstrumentType.put(Class.forName(entry.getKey()), entry.getValue()); + measurableToInstrumentType.put(Class.forName(entry.getKey()), entry.getValue()); } catch (ClassNotFoundException e) { // Class doesn't exist in this version of kafka client - skip } @@ -60,7 +60,7 @@ final class KafkaMetricRegistry { @Nullable static RegisteredObservable getRegisteredObservable(Meter meter, KafkaMetric kafkaMetric) { - // If metric is not a Measureable, we can't map it to an instrument + // If metric is not a Measurable, we can't map it to an instrument Class measurable = getMeasurable(kafkaMetric); if (measurable == null) { return null; @@ -77,7 +77,7 @@ final class KafkaMetricRegistry { String instrumentDescription = descriptionCache.computeIfAbsent(instrumentName, s -> metricName.description()); String instrumentType = - measureableToInstrumentType.getOrDefault( + measurableToInstrumentType.getOrDefault( measurable, INSTRUMENT_TYPE_DOUBLE_OBSERVABLE_GAUGE); InstrumentDescriptor instrumentDescriptor =