scoutapp / scout_apm_elixir

ScoutAPM Elixir Agent. Supports Phoenix and other frameworks.
https://scoutapm.com
Other
36 stars 20 forks source link

Add option for ignoring requests #75

Closed cschneid closed 5 years ago

cschneid commented 5 years ago

The Ruby Agent has several methods for ignoring certain requests, which we should add to the Elixir agent as well.

The Selective Ignore feature also allows for user-defined sampling in the case of very high, but relatively uninteresting throughput.

cschneid commented 5 years ago

The Ruby impl does some tricks to minimize memory and cpu overhead if it's been informed that the whole transaction will be ignored.

It stops the installed instrumentation from recording new layers at all, wipes any existing ones, and instead switches to only counting call depth, 1, 2, 3, 2, 3, 2, 1, 0 (and at 0, flush the ignored transaction and go on to record the next one like normal)

mitchellhenke commented 5 years ago

This was closed in #79