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 boolean
endSpan
private ContextHandle
origContext
private Span
span
-
Constructor Summary
Constructors Modifier Constructor Description private
ScopeInSpan(Span span, boolean endSpan)
Constructs a newCurrentSpanUtils.ScopeInSpan
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
-
-
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 theSpan
to be added to the currentio.grpc.Context
.
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceNonThrowingCloseable
- Specified by:
close
in interfaceScope
-
-