Xabaril / AspNetCore.Diagnostics.HealthChecks

Enterprise HealthChecks for ASP.NET Core Diagnostics Package
Apache License 2.0
4.12k stars 800 forks source link

Add-HealthChecks.Publisher.ApplicationInsights to use telemetryClient.TrackAvailability #1094

Open jsclifford opened 2 years ago

jsclifford commented 2 years ago

Update HealthChecks.Publisher.ApplicationInsights to use telemetryClient.TrackAvailability(availability)

This will enhance this publisher to have availability results to directly integrate into Azure Monitor Dashboards instead of a custom Log Analytics Query.

Please update all instances of client.TrackException( to use client.TrackAvailability(availability)

kemmis commented 2 years ago

+1

sungam3r commented 1 year ago

@jsclifford @kemmis PR is welcome. Looks like an obvious fix but I'm not familiar with AppInsights.

jsclifford commented 1 year ago

Ok I will get a pull request up when I get time.

bradyclifford commented 6 months ago

I too see value in this.