Azure.Monitor.OpenTelemetry.AspNetCore.Internals.AzureSdkCompat.AzureEventSourceLogForwarder double formats event messages #44028
Labels
Client
This issue points to a problem in the data-plane of the library.
Monitor - Distro
Monitor OpenTelemetry Distro
Service Attention
This issue is responsible by Azure service team.
azure-sdk-for-net/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Internals/AzureSdkCompat/AzureEventSourceLogForwarder.cs
Line 70 in c4418cd
calls
LogEvent
, but ignores the formatted string coming from thes
parameter.LogEvent
then calls _formatMessage here:azure-sdk-for-net/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Internals/AzureSdkCompat/AzureEventSourceLogForwarder.cs
Line 34 in c4418cd
which is defined as:
azure-sdk-for-net/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Internals/AzureSdkCompat/AzureEventSourceLogForwarder.cs
Line 64 in c4418cd
Then
EventSource.Format()
calls:azure-sdk-for-net/sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs
Line 58 in 2a0e020
This seems to effectively calls
EventSourceEventFormatting.Format
twice.(related to #43947 (comment))
The text was updated successfully, but these errors were encountered: