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.