scoutapp / scout_apm_elixir

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

Configuration Options - IGNORE #41

Closed jasoncaryallen closed 6 years ago

jasoncaryallen commented 6 years ago

Customer feature request: It would be wonderful to have a configuration key ignore: which accepts an array of endpoints to be excluded from instrumentation by the Scout Agent.

I understand implicitly including all controllers by default by adding the use ScoutApm.Instrumentation macro to the myapp_web/myapp_web.ex module as a catch-all for controller actions, but I have a liveness/readiness ping uptime monitoring endpoint that is pinged very frequently by my Kubernetes cluster, and I don't care about that endpoint's metrics (nor do I want those pings to eat up thousands of my paid plan's transactions per day!)

Similar or near-identical implementation to the Ruby Gem for Scout's config/scout_apm.yml but rather in a Phoenix app's config/scout_apm.exs would be wonderful!

Love the service so far! Keep up the great work.