EventSourceException whilte processing event "Exception" or "Metric"
See original GitHub issueRepro Steps
There were couple new issues reported in Application Insights SDK telemetry:
-
AI (Internal): EventSourceException while processing event "Exception": System.Reflection.TargetException:Non-static method requires a target.
-
AI (Internal): EventSourceException while processing event "Metric": System.Reflection.TargetException:Non-static method requires a target.
This issue seems to affect multiple customers.
Version Info
SDK Version : 2.5.1
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:30 (21 by maintainers)
Top Results From Across the Web
EventSourceException while processing event "LogVerbose"
While using EventHubTrigger Azurefunction such a ugly exception received (As below) in telemetry traces of ApplicationInsights. AI (Internal): [ ...
Read more >EventSourceException Class (System.Diagnostics.Tracing)
The exception that is thrown when an error occurs during event tracing for Windows (ETW). public ref class EventSourceException : Exception. C# Copy....
Read more >https://raw.githubusercontent.com/dotnet/samples/m...
I think there's a bug where I am using the same login to connect to a database, while another process is doing the...
Read more >Has az login stopped working in Ubuntu 20.04?
... EventSourceException while processing event "LogVerbose" ... Azure Diagnostic Agent has Stopped Working (Exception: StorageAccount is null) ...
Read more >Viewing online file analysis results for 'SSDT-Setup-ENU.exe'
Contains ability to register a top-level exception handler (often used as anti-debugging trick). details: SetUnhandledExceptionFilter@KERNEL32.dll (Show Stream)
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just for convenience a stack dump as requested above:
In addition there was an interesting link to this issue here.
It’s a bug in corefx and affects .NET Core only. We won’t try and work-around it in App Insights. We’ll get it fixed in .NET Core. If it’s a straightforward (low risk) fix, we’ll also push for porting the fix down-level into the LTS branch. Thanks for your help getting the call-stack and narrowing down the issue, @steven-r. This issue can probably be closed now that we understand what causes it and that we’ve decided not to do anything in App Insights.