microsoft / ApplicationInsights-Profiler-AspNetCore

Application Insights Profiler sample and documentation
MIT License
66 stars 22 forks source link

Profiler throws error in trace: AI: Process was called on the TelemetrySink after it was disposed #213

Closed xiaomi7732 closed 4 months ago

xiaomi7732 commented 4 months ago

Describe the bug There is a lot of trace entries of AI: Process was called on the TelemetrySink after it was disposed after enabled the profiler.

To Reproduce

  1. Enable the profiler;
  2. Let it run for a while;
  3. Check the traces in the application insights resource;

Expected behavior No unexpected trace of errors.

xiaomi7732 commented 4 months ago

A fix is available. Check out the latest package: https://www.nuget.org/packages/Microsoft.ApplicationInsights.Profiler.AspNetCore/2.7.0-beta1

xiaomi7732 commented 4 months ago

The stable release: https://www.nuget.org/packages/Microsoft.ApplicationInsights.Profiler.AspNetCore/2.7.0