Package io.opencensus.trace
Class CurrentSpanUtils.ScopeInSpan
- java.lang.Object
-
- io.opencensus.trace.CurrentSpanUtils.ScopeInSpan
-
- All Implemented Interfaces:
NonThrowingCloseable,Scope,java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- CurrentSpanUtils
private static final class CurrentSpanUtils.ScopeInSpan extends java.lang.Object implements Scope
-
-
Field Summary
Fields Modifier and Type Field Description private booleanendSpanprivate ContextHandleorigContextprivate Spanspan
-
Constructor Summary
Constructors Modifier Constructor Description privateScopeInSpan(Span span, boolean endSpan)Constructs a newCurrentSpanUtils.ScopeInSpan.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()
-
-
-
Field Detail
-
origContext
private final ContextHandle origContext
-
span
private final Span span
-
endSpan
private final boolean endSpan
-
-
Constructor Detail
-
ScopeInSpan
private ScopeInSpan(Span span, boolean endSpan)
Constructs a newCurrentSpanUtils.ScopeInSpan.- Parameters:
span- is theSpanto be added to the currentio.grpc.Context.
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceNonThrowingCloseable- Specified by:
closein interfaceScope
-
-