Skip to content

Operation name not being sent to Application Insights. #218

@claudiopi

Description

@claudiopi

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:
image

When using Serilog.Sinks.ApplicationInsights I only get the exception, but no parent operation:

image

To test, just replace in both application insights your instrumitation key / connection string, and then run the appropiate configuration

image

Thanks!
InsightsLoggingAlternatives.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions