Package io.opencensus.trace
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 boolean
private final ContextHandle
private final Span
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ScopeInSpan
(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 theSpan
to be added to the currentio.grpc.Context
.
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceNonThrowingCloseable
- Specified by:
close
in interfaceScope
-