-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling Heartbeats #1681
Comments
@tommy-ly The top half should be enough to disable heartbeats. I validated that it works. (i.e i can disable heartbeats)
Please share the exact snippet you are using and we can investigate further. Doing |
Closing as correct solution is provided. Please reopen if there is a repro where the above is not working and we'll investigate. |
Hi experts, I encountered the same issues:
and attached my AppInsights config below. Just wondering did I misused any config here? Thanks.
And my project config is shown below:
|
@Nortown Nothing wrong in your code. There is a bug in the product which cases the Error log to be fired. The hearbeat is disabled, but the error log is produced every heart beat interval. Reopening this issue and adding a fix for the same. |
Closing. Will be available in 2.14 |
Currently trying to disable heartbeats in my ASP.NET Core 3.1 web application with the following code in my startup:
From what I can tell after reading the documentation the top half of the code (adding application insights telemetry) should have been enough. This didn't work which lead to me google further into the issue which someone had suggested initializing the diagnostics module (although I'm not sure how that works since we aren't actually doing anything with the module after instantiation).
After doing this I now get this error message every time it tries to do the heartbeat in my traces :
Is there some simple setting I've missed in my startup?
Version Info
SDK Version : 2.12.0
.NET Version : Core 3.1
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : Manual
OS : Windows
Hosting Info (IIS/Azure WebApps/ etc) : IIS
The text was updated successfully, but these errors were encountered: