From c2163fc4ca8d315d3a7f994b84036f94ffcd5414 Mon Sep 17 00:00:00 2001 From: Gagan Juneja Date: Thu, 5 Oct 2023 02:32:37 +0530 Subject: [PATCH] Address review comment Signed-off-by: Gagan Juneja --- .../opensearch/telemetry/metrics/OTelMetricsTelemetry.java | 3 --- .../opensearch/telemetry/tracing/OTelTracingTelemetry.java | 4 ---- 2 files changed, 7 deletions(-) diff --git a/plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/metrics/OTelMetricsTelemetry.java b/plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/metrics/OTelMetricsTelemetry.java index 78fa5647ebc2e..8598e5976d20d 100644 --- a/plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/metrics/OTelMetricsTelemetry.java +++ b/plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/metrics/OTelMetricsTelemetry.java @@ -8,8 +8,6 @@ package org.opensearch.telemetry.metrics; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import org.opensearch.telemetry.OTelTelemetryPlugin; import java.io.Closeable; @@ -26,7 +24,6 @@ * OTel implementation for {@link MetricsTelemetry} */ public class OTelMetricsTelemetry implements MetricsTelemetry { - private static final Logger logger = LogManager.getLogger(OTelMetricsTelemetry.class); private final Meter otelMeter; private final T meterProvider; diff --git a/plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/OTelTracingTelemetry.java b/plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/OTelTracingTelemetry.java index 9e8065664b825..f88afe623fd56 100644 --- a/plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/OTelTracingTelemetry.java +++ b/plugins/telemetry-otel/src/main/java/org/opensearch/telemetry/tracing/OTelTracingTelemetry.java @@ -8,8 +8,6 @@ package org.opensearch.telemetry.tracing; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import org.opensearch.telemetry.OTelAttributesConverter; import org.opensearch.telemetry.OTelTelemetryPlugin; @@ -24,8 +22,6 @@ * OTel based Telemetry provider */ public class OTelTracingTelemetry implements TracingTelemetry { - - private static final Logger logger = LogManager.getLogger(OTelTracingTelemetry.class); private final OpenTelemetry openTelemetry; private final T tracerProvider; private final io.opentelemetry.api.trace.Tracer otelTracer;