Description

UseNilMetrics is checked by the constructor functions for all of the standard metrics. If it is true, the metric returned is a stub.

This global kill-switch helps quantify the observer effect and makes for less cluttered pprof profiles.

UseNilMetrics is referenced in 4 repositories

github.com/rcrowley/go-metrics github.com/Shopify/sarama github.com/TheThingsNetwork/ttn

...