Similar to #287 this ensures that intervals are always at least 1ms.
Without this closing and flushing the metrics exporter immediately after sending a metrics can result in identical start and end times which are rejected by google cloud. This is especially apparent in windows from our testing.
Similar to #287 this ensures that intervals are always at least 1ms.
Without this closing and flushing the metrics exporter immediately after sending a metrics can result in identical start and end times which are rejected by google cloud. This is especially apparent in windows from our testing.