-
Notifications
You must be signed in to change notification settings - Fork 15
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
ParentId is not set #13
Comments
I'll investigate the problem later this week. In the meantime, could you please provide me with a simple repro project - so that I know exactly what the problem is? |
Were you able to create a repro project for this? |
Unfortunately not. I need the help of a colleague because my OWIN knowledge is limited. And I didn't find time with him yet. |
I created a simple repro project at https://github.com/ursenzler/AspNetOwinApplicationInsightsTest A single controller with a single method throwing an exception. |
Remove following line from your <Add Type="Microsoft.ApplicationInsights.Web.OperationCorrelationTelemetryInitializer, Microsoft.AI.Web" /> This initializer has functionality, that is overlapping with Application Insights OWIN extensions. In contrast to OWIN extensions, it does utilize the Also a hint: you can still view exceptions, that are thrown within a request by selecting the All available telemetry for this operation option on the request in the portal. |
Thank you very much. That solved the problem. Maybe you should add |
Good idea, will do that. The docs were created before AI tools started adding this initializer. |
I found out that when I send Error data to ApplicationInsights, the telemetry data misses the
ParentId
. The result is that the error is not correctly correlated with the root operation. No exception data is provided when looking at a failed request (just "Learn how to track exceptions for failed requests").Also see http://stackoverflow.com/questions/42858598/exceptions-are-not-shown-in-request-details-but-under-server-exceptions-in-appli
Unfortunately, I have no clue what changes are needed to get the parent Id so that it could be set inside
OperationIdTelemetryInitializer
The text was updated successfully, but these errors were encountered: