clearCurrentSpan static method
Clears the current span from the context. Returns a new context without the span and span context.
This method only returns a new context; it does not change the current context. To make the new context active, use run or runSync.
Implementation
static Context clearCurrentSpan() {
return current.copyWithoutSpan();
}