diff --git a/README.md b/README.md index 39c0d8b..b43f1fb 100644 --- a/README.md +++ b/README.md @@ -68,11 +68,20 @@ $statsd->memory('foo.memory_peak_usage'); ### [Gauges](https://github.com/etsy/statsd/blob/master/docs/metric_types.md#gauges) -statsd supports gauges, arbitrary values which can be recorded. +statsd supports gauges, arbitrary values which can be recorded. + +This method accepts both absolute (3) and delta (+11) values. + +*NOTE:* Negative values are treated as delta values, not absolute. ```php gauge('foobar', 3); + +// Pass delta values as a string. +// Accepts both positive (+11) and negative (-4) delta values. +$statsd->gauge('foobar', '+11'); ``` ### [Sets](https://github.com/etsy/statsd/blob/master/docs/metric_types.md#sets) diff --git a/lib/Connection/InMemory.php b/lib/Connection/InMemory.php index 4d4ba24..daa881b 100644 --- a/lib/Connection/InMemory.php +++ b/lib/Connection/InMemory.php @@ -6,7 +6,7 @@ /** * This connection collects all messages but is not sending them. This eases
 - * feature testing when you want to assert that a specific set of messages where created.
 + * feature testing when you want to assert that a specific set of messages were created.
 */ class InMemory implements Connection {