README.md in active_metrics-0.1.0 vs README.md in active_metrics-0.1.1
- old
+ new
@@ -26,11 +26,11 @@
require 'active_metrics'
class Foo
include ActiveMetrics::Instrumentable
-
+
def bar
count 'method.bar'
end
end
@@ -41,9 +41,15 @@
* `count`: add a value (default is 1) to a counter
* `measure`: individual measurements that comprise a statistical distribution (i.e. latency measurements)
* `sample`: simple key/numerical value pair
Be mindful of any kind of conflicts when including the module in your class.
+
+### Disabling the metrics
+
+For various environments (development and QA), the metrics can be a bit too
+verbose and have very little value. In those cases, the metrics can be disabled
+using by using the `SILENT_METRICS=1` environment variable.
## Contributing
Bug reports and pull requests are welcome on GitHub at [https://github.com/andreimaxim/active_metrics.]()