Span.makeCurrent()

Signature

Scope makeCurrent(Span span)

Domain

ACTION

Description

Add this Span to the current context and set new Context as current.

Parameters

NameTypeDescription
spanObjectSpan object.

Returns

TypeDescription
ObjectA Scope object.

Cautions

Scope.close() must be called to properly restore the previous context from before this scope of execution or context will not work correctly