-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operation name not being sent to Application Insights. #218
Comments
So analyzing the network call, I realized that ai.operation.name is not being sent to AI when using Microsoft.ApplicationInsights.AspNetCore the following is being posted:
when using Serilog.Sinks.ApplicationInsights the following is being posted (which misses among other things the operation name):
|
Hi, this issue is causing the azure function console to not display any logs beside executing / executed one I've found a workaround until this issue is officially fixed I've created a custom Trace converter that is adding the operation_Namevalue. Also note the true values when calling the base.FowardPropertiesToTelemetryProperties. The most important is the value of includeLogLevel without it "LogLevel" do not display in the azure invocation screen
|
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
The text was updated successfully, but these errors were encountered: