TelemetryFilter

Hex.pmBuild Status

The purpose of this library is to filter out routes that shouldn't trigger Plug Telemetry events. This is useful for when you have routes where you do not Telemetry events triggered as not to pollute logs or metrics. For example, this may be useful when you are using something like Kubernetes or Prometheus and do not want your logs polluted with calls to "/health" and "/metrics" every 5 seconds (or how ever long the interval is set).

Installation

If available in Hex, the package can be installed by adding telemetry_filter to your list of dependencies in mix.exs:

def deps do
  [
    {:telemetry_filter, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/telemetry_filter.