Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

System.Diagnostics.TraceSource not sending data to Application Insights

$
0
0

I have application insights set up in my project, which works fine, it sends data to Azure without having any issue, now I am trying to get some trace logs into telemetry sent to azure using System.Diagnostics.SourceTrace which is implemented in an internal nuget package that is referenced in the Webhost application (this nuget package doesn't contain a reference to app insights), the thing is... for some reason, it's just not reaching that code, well, it does and it doesn't at the same time, when I am debugging in the output window I can see there is an event created when it hits the Sytem.Diagnostics.TraceEvent() method, but it shows up like this

Application Insights Telemetry (unconfigured): {"name":"Microsoft.ApplicationInsights.Message","time":"2021-09-01T22:43:18.7652108Z","tags":{"ai.cloud.roleInstance":

Which makes me think that for some reason the telemetryclient is losing the reference to the instrumentation key or something like that, and I am not sure how to fix this, because it's only happening there.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>