java-dogstatsd-client icon indicating copy to clipboard operation
java-dogstatsd-client copied to clipboard

Gracefull shutdown

Open kao73 opened this issue 4 years ago • 2 comments

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 avatar Feb 11 '21 06:02 kao73

@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".

truthbk avatar Oct 28 '21 15:10 truthbk

Thank you! Do you have a link to the ticket, probably?

kao73 avatar Oct 29 '21 11:10 kao73