Ignore certain requests for Request Tracking RRS feed

  • Question

  • Is it possible to ignore request data for requests matching a certain pattern? For example, we don't want any SignalR requests to get logged to App Insights because it is skewing the server request/response time metrics in our application. 
    Wednesday, April 22, 2015 5:33 PM


All replies

  • Hello Travis,

    I'm not aware of the way to cancel the certain kind of the requests from being sent. Let's see if someone else knows the way to do it (e.g. somehow cancel request from custom telemetry initializer if it matches the certain pattern...)

    There is a way for you to filter out the view, however, to exclude the request you do not want to look at. Metric Explorer allows to configure the metrics you'd like to see and apply several filters (in the menu on top) and groupings (in the menu when you click a chart) followed by moving this to the favorites/pinning on the start blade.

    So, if there is property to filter out SignalR in Metric Explorer, that would be a workaround. If no such property exists, you can create one via custom telemetry initializer to distinguish between SignaR and other requests.

    Dmitry Matveev

    Wednesday, April 22, 2015 8:49 PM
  • Unfortunately filtering out on the charts will not work for our need. If you find out how to exclude them please let me know.
    Wednesday, April 22, 2015 9:47 PM
  • There is no way to filter requests right now.

    You can add your suggestion here: http://visualstudio.uservoice.com/forums/121579-visual-studio/category/77108-application-insights

    If filtering in UI does not work for you as Dmitry suggested you can only completely remove autocollection (by removing AI http module) and call TrackRequest when you think it is appropriate.


    Thursday, April 23, 2015 5:27 AM
  • +1 This would be indeed a nice feature. I would want to exclude only the Signal ping requests (/signalr/ping) because there are a lot of them and is messing with the statistics.
    Friday, January 29, 2016 8:18 PM
  • Starting from Web SDK 2.0.0-Beta2 you can create a custom Telemetry Processor that and filter specific requests based on any criteria you'd like, such as request endpoint URL or duration.

    More details on how to configure Telemetry Processors


    • Proposed as answer by Alex Bulankou Saturday, January 30, 2016 2:00 PM
    • Edited by Alex Bulankou Saturday, January 30, 2016 2:04 PM Fixed link
    • Marked as answer by Alex Bulankou Wednesday, February 3, 2016 1:22 PM
    Saturday, January 30, 2016 2:00 PM