Skip to content

Commit b3f56d4

Browse files
committed
Clearly shows that metrics have to be explicitly sent
By looking at the usage example, one could think metrics are immediately sent to servers when calling `Client::increment()`, `Client::count()`... which is not the case: client must be explicitly asked to send data to servers. By adding a call to `Client::send()` I make it clear that `Client` won't send data unless asked to.
1 parent d16492d commit b3f56d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ $client->count('a.graphite.node', 5);
1313
$client->timing('another.graphite.node', (float) $timing);
1414
$client->set('a.graphite.set', 12);
1515
$client->gauge('a.gauge.node', 8);
16+
17+
$client->send(); // Send the metrics to the servers
1618
```

0 commit comments

Comments
 (0)