From 14dd0f9336da4c541546b6420d3c93e57957f8db Mon Sep 17 00:00:00 2001 From: Jean Bisutti Date: Thu, 29 Feb 2024 15:37:57 +0100 Subject: [PATCH] Enable log on exception --- .../logging/DiagnosticTelemetryPipelineListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/logging/DiagnosticTelemetryPipelineListener.java b/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/logging/DiagnosticTelemetryPipelineListener.java index 712c55c154026..e04660352520d 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/logging/DiagnosticTelemetryPipelineListener.java +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/logging/DiagnosticTelemetryPipelineListener.java @@ -101,7 +101,7 @@ public void onResponse(TelemetryPipelineRequest request, TelemetryPipelineRespon public void onException(TelemetryPipelineRequest request, String reason, Throwable throwable) { if (!NetworkFriendlyExceptions.logSpecialOneTimeFriendlyException( throwable, request.getUrl().toString(), friendlyExceptionThrown, logger)) { - if (logRetryableFailures) { + if (logOnException) { operationLogger.recordFailure( reason + retryableFailureSuffix, throwable,