ensureCurrentSpan

Use this to wrap a block of code and ensure the current span exists at the end.