-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
Hi,
I am trying to use Serilog to centralize logging exceptions and for Application Insights I would like to use this project.
Although the exception does get logged in Application Insights it lacks the parent operation name
I attach here a project that demostrates the issue using both Microsoft.ApplicationInsights.AspNetCore and Serilog.Sinks.ApplicationInsights
When using Microsoft.ApplicationInsights.AspNetCore I correctly get the parent operation:
When using Serilog.Sinks.ApplicationInsights I only get the exception, but no parent operation:
To test, just replace in both application insights your instrumitation key / connection string, and then run the appropiate configuration
Thanks!
InsightsLoggingAlternatives.zip