From 0ad5862b2ac81cd7b8e4c1480e1c79ad941b0212 Mon Sep 17 00:00:00 2001 From: Jean Bisutti Date: Wed, 6 Nov 2024 11:17:36 +0100 Subject: [PATCH] Bump Azure Monitor OpenTelemetry Exporter --- pom.xml | 2 +- .../exporter/azure/runtime/AzureMonitorCustomizer.java | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 0199b7f..bfa8c37 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,7 @@ 0.27.0 - 1.0.0-beta.26 + 1.0.0-beta.31 1.0.2 3.26.3 diff --git a/quarkus-opentelemetry-exporter-azure/runtime/src/main/java/io/quarkiverse/opentelemetry/exporter/azure/runtime/AzureMonitorCustomizer.java b/quarkus-opentelemetry-exporter-azure/runtime/src/main/java/io/quarkiverse/opentelemetry/exporter/azure/runtime/AzureMonitorCustomizer.java index 3d86503..58fec87 100644 --- a/quarkus-opentelemetry-exporter-azure/runtime/src/main/java/io/quarkiverse/opentelemetry/exporter/azure/runtime/AzureMonitorCustomizer.java +++ b/quarkus-opentelemetry-exporter-azure/runtime/src/main/java/io/quarkiverse/opentelemetry/exporter/azure/runtime/AzureMonitorCustomizer.java @@ -1,9 +1,8 @@ package io.quarkiverse.opentelemetry.exporter.azure.runtime; +import com.azure.monitor.opentelemetry.exporter.AzureMonitorExporter; import jakarta.inject.Singleton; -import com.azure.monitor.opentelemetry.exporter.AzureMonitorExporterBuilder; - import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder; import io.quarkus.opentelemetry.runtime.AutoConfiguredOpenTelemetrySdkBuilderCustomizer; @@ -17,8 +16,7 @@ public AzureMonitorCustomizer(String azureConnectionString) { } @Override - public void customize(AutoConfiguredOpenTelemetrySdkBuilder builder) { - new AzureMonitorExporterBuilder().connectionString(azureConnectionString) - .install(builder); + public void customize(AutoConfiguredOpenTelemetrySdkBuilder sdkBuilder) { + AzureMonitorExporter.customize(sdkBuilder, azureConnectionString); } }