serilog-contrib / serilog-sinks-applicationinsights

A Serilog sink that writes events to Microsoft Azure Application Insights
Apache License 2.0
220 stars 72 forks source link

All messages are not being logged on app insights #215

Open saadsaeed01 opened 1 year ago

saadsaeed01 commented 1 year ago

Description Not all messages are getting logged on app insights

Messages logged on the console

Messages logged on app insights

Reproduction Configured sinks in the following way

Logged an error message from a controller

Expected behavior All messages should be logged, and please keep in mind that I am not putting any stress. There were only 4 messages

Relevant package, tooling, and runtime versions Runtime: NET 7 Package version: Serilog.Sinks.ApplicationInsights --version 4.0.0

Additional context No additional context so far

alexravenna commented 10 months ago

As unlikely as it might seem, are you sure that your message isn't being filtered out by adaptive sampling?