goose icon indicating copy to clipboard operation
goose copied to clipboard

fix: add Close method

Open micaelmalta opened this issue 9 months ago • 1 comments

This enable flushing correctly the metrics

By default, metrics are buffered and sent to Datadog every 100ms

If we are for example shutting down an app, some metrics might be lost

By Closing it properly, we ensure every metrics will be actually sent

micaelmalta avatar May 13 '24 18:05 micaelmalta

I have signed the CLA!

micaelmalta avatar May 13 '24 19:05 micaelmalta