Attempt to flush traces/metrics immediately after adding.

In the edge-case event that the worker dies/is stopped without shutting
down, we want to make sure that metrics and traces don't build up
indefinitely. This will cause them to get flushed to the queue, which
enforces a maximum number of values.