Application Insights Logging Twice

109 Views Asked by At

I have a .NET 8 v4 dotnet-isolated Azure Function app.

Upon examining some logs, I discovered one set of traces that were logged (via logger.LogInformation(...)) twice. (i.e. each trace item was duplicated--EXCEPT for the itemId, which was unique for each item) These were logged during the processing of a timer-triggered function.

This is the only time I have seen this happen.

During the same processing, I also recorded some custom events (via telemetry.TrackEvent(...)). These were not duplicated, as the traces were.

Can someone explain this? Under what conditions can this occur?

0

There are 0 best solutions below