A large part of my telemetry quota for Application Insights is being used up by ping requests for SignalR (and other SignalR requests).
How can I prevent these requests from being reported? I want to keep other ajax requests, but apply some kind of (client side) filter for SignalR requests.
I haven't been able to find any good documentation that provides easy examples. I know that I can filter out some requests using the addTelemetryInitializer
, but I don't know what to filter on?
appInsights.queue.push(function () {
appInsights.context.addTelemetryInitializer(function (envelope) {
// What should I do here to remove /signalr requests?
});
});