Fix for bug that caused spans being lost and not processed.

Fix for bug that resulted in annotations not being sent to metrics
reporter.