java-dogstatsd-client
java-dogstatsd-client copied to clipboard
Gracefull shutdown
How to shutdown the client gracefully? Does the StatsDClient.close() method guarantees all buffers will be flushed and data sent to the server? Thanks.
@kao73 unfortunately the client does not currently behave in this way. Upon a call to close() the agent shuts down its workers and client submitted metrics that have not yet been buffered into the outgoing messages (ie. metrics still in the pipeline) will not be processed.
We have planned work to address this, but the current behavior is not "graceful".
Thank you! Do you have a link to the ticket, probably?