I'm building an Azure web-app and if there are certain unexpected errors, I want to be able to bubble it up in the Azure Dashboard / add alerts.
Any System.Diagnostics.Trace.TraceError()
messages are logged to the ApplicationLog
. Is there a way to add alert/monitoring-graphs for these in Azure Portal?
Aram's links below really helps. Please read them.
To Get this working:
ApplicationInsights
to your project.System.Diagnostics.Trace
) to be searchable on insights, add Microsoft.ApplicationInsights.TraceListener
nuget to your project.telemetryClient.TrackException()
to place a server exception
when you hit a critical error.ServerExceptions
within the given time window.