Class CurrentSpanUtils.ScopeInSpan
java.lang.Object
io.opencensus.trace.CurrentSpanUtils.ScopeInSpan
- All Implemented Interfaces:
NonThrowingCloseable, Scope, Closeable, AutoCloseable
- Enclosing class:
CurrentSpanUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final ContextHandleprivate final Span -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateScopeInSpan(Span span, boolean endSpan) Constructs a newCurrentSpanUtils.ScopeInSpan. -
Method Summary
-
Field Details
-
origContext
-
span
-
endSpan
private final boolean endSpan
-
-
Constructor Details
-
ScopeInSpan
Constructs a newCurrentSpanUtils.ScopeInSpan.- Parameters:
span- is theSpanto be added to the currentio.grpc.Context.
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceNonThrowingCloseable- Specified by:
closein interfaceScope
-