Comments (7)
Good idea, will do that. The docs were created before AI tools started adding this initializer.
from applicationinsights-owinextensions.
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?
from applicationinsights-owinextensions.
Were you able to create a repro project for this?
from applicationinsights-owinextensions.
Unfortunately not. I need the help of a colleague because my OWIN knowledge is limited. And I didn't find time with him yet.
from applicationinsights-owinextensions.
I created a simple repro project at https://github.com/ursenzler/AspNetOwinApplicationInsightsTest
A single controller with a single method throwing an exception.
Exception is sent to Appinsights in a Filter (see Startup.cs).
from applicationinsights-owinextensions.
Remove following line from your ApplicationInsights.config
:
<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 ParentId
property. As a result of combining those two, ParentId
has different value than OperationId
and RequestId
. This is why the exception is not linked to the request.
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.
from applicationinsights-owinextensions.
Thank you very much. That solved the problem.
Maybe you should add OperationCorrelationTelemetryInitializer
to the list of things to remove in the readme.md. It was there after installing AppInsights within VS2017.
from applicationinsights-owinextensions.
Related Issues (20)
- Add paramters from OwinContext? HOT 4
- When to remove the optional TelemetryInitializers HOT 2
- HTTP 500s not being logged HOT 4
- Support for DependencyCollector? HOT 3
- Assembly Not Signed HOT 3
- Under Load we see this exception HOT 12
- Service Fabric Owin OperationIdContext is null HOT 3
- Support for getContextPropertiesAsync HOT 5
- Support HTTP Protocol for Correlation HOT 4
- Set requestId and parentId to correlate dependencies to requests in the azure portal HOT 7
- System.OperationCanceledException and System.ObjectDisposedException HOT 8
- Could not install package 'ApplicationInsights.OwinExtensions 0.6.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2' HOT 2
- System.Threading.Tasks.TaskCancelledException: HOT 7
- ObjectDisposedException at ApplicationInsights.OwinExtensions.HttpRequestTrackingMiddleware HOT 11
- This extension killed my webapp performance HOT 5
- How to set the user context of RequestTelemetry HOT 1
- Nuget package is missing strong name HOT 1
- operation_Name Missing From Custom Event Data HOT 4
- ApplicationInsights.OwinExtensions.HttpRequestTrackingMiddleware+<Invoke>d__4.MoveNext HOT 1
- Conflicting version of Microsoft.Owin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from applicationinsights-owinextensions.