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.
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 thatClient
won't send data unless asked to.