From fad02b4bc9749f29a3ef341edcf17a48f32bc068 Mon Sep 17 00:00:00 2001 From: Jean Bisutti Date: Wed, 6 Mar 2024 14:46:28 +0100 Subject: [PATCH] Avoid warning on sporadic connection failures (#39021) --- .../exporter/implementation/utils/AzureMonitorHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/utils/AzureMonitorHelper.java b/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/utils/AzureMonitorHelper.java index 9fa5bddb38ec..4db8d1d1cd08 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/utils/AzureMonitorHelper.java +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/utils/AzureMonitorHelper.java @@ -26,7 +26,7 @@ public static TelemetryItemExporter createTelemetryItemExporter(HttpPipeline htt if (tempDir == null) { telemetryPipelineListener = new DiagnosticTelemetryPipelineListener( - "Sending telemetry to the ingestion service", false, " (telemetry will be lost)"); + "Sending telemetry to the ingestion service", true, " (telemetry will be lost)"); } else { telemetryPipelineListener = TelemetryPipelineListener.composite( @@ -35,8 +35,8 @@ public static TelemetryItemExporter createTelemetryItemExporter(HttpPipeline htt // will log if that retry from disk fails new DiagnosticTelemetryPipelineListener( "Sending telemetry to the ingestion service", - true, - " (telemetry will be stored to disk and retried)"), + false, + ""), new LocalStorageTelemetryPipelineListener( 50, // default to 50MB TempDirs.getSubDir(tempDir, "telemetry"),