From 1e3bb88aa11f6a694a1b8dfe7b412e411cf5c9bd Mon Sep 17 00:00:00 2001 From: Siddhant Deshmukh Date: Fri, 9 Aug 2024 15:54:13 -0700 Subject: [PATCH] Fix incorrect path Signed-off-by: Siddhant Deshmukh --- plugins/telemetry-otel/config/telemetry-otel/log4j2.properties | 2 +- .../metrics/exporter/OTelMetricsExporterFactoryTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/telemetry-otel/config/telemetry-otel/log4j2.properties b/plugins/telemetry-otel/config/telemetry-otel/log4j2.properties index d088bd75a5fb7..9a415def85571 100644 --- a/plugins/telemetry-otel/config/telemetry-otel/log4j2.properties +++ b/plugins/telemetry-otel/config/telemetry-otel/log4j2.properties @@ -41,7 +41,7 @@ appender.metrics.strategy.type = DefaultRolloverStrategy appender.metrics.strategy.max = 4 -logger.metrics_exporter.name = io.opentelemetry.exporter.logging.OtlpJsonLoggingMetricExporter +logger.metrics_exporter.name = io.opentelemetry.exporter.logging.otlp.OtlpJsonLoggingMetricExporter logger.metrics_exporter.level = INFO logger.metrics_exporter.appenderRef.tracing.ref = metrics logger.metrics_exporter.additivity = false diff --git a/plugins/telemetry-otel/src/test/java/org/opensearch/telemetry/metrics/exporter/OTelMetricsExporterFactoryTests.java b/plugins/telemetry-otel/src/test/java/org/opensearch/telemetry/metrics/exporter/OTelMetricsExporterFactoryTests.java index 2cf5fc0873550..09a2a4751ee84 100644 --- a/plugins/telemetry-otel/src/test/java/org/opensearch/telemetry/metrics/exporter/OTelMetricsExporterFactoryTests.java +++ b/plugins/telemetry-otel/src/test/java/org/opensearch/telemetry/metrics/exporter/OTelMetricsExporterFactoryTests.java @@ -28,7 +28,7 @@ public void testMetricsExporterLogging() { Settings settings = Settings.builder() .put( OTelTelemetrySettings.OTEL_METRICS_EXPORTER_CLASS_SETTING.getKey(), - "io.opentelemetry.exporter.logging.OtlpJsonLoggingMetricExporter" + "io.opentelemetry.exporter.logging.otlp.OtlpJsonLoggingMetricExporter" ) .build(); MetricExporter metricExporter = OTelMetricsExporterFactory.create(settings);