Skip to content

Conversation

@mtwstudios
Copy link

This PR adds a public method to flush any remaining metrics manually (rather than waiting for the flush interval), by calling the Flush() method on the dogstatsd client.

This is helpful in the case of recording a metric right before terminating the program. In this case, the metric will not get submitted to datadog - the only workaround being putting a sleep in place for at least as long as the flush interval.

With this, one can call Flush() before the program terminates to make sure any remaining metrics are submitted to Datadog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant