Class 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 Detail

      • span

        private final Span span
      • endSpan

        private final boolean endSpan
    • Constructor Detail

      • ScopeInSpan

        private ScopeInSpan​(Span span,
                            boolean endSpan)
        Parameters:
        span - is the Span to be added to the current io.grpc.Context.
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface NonThrowingCloseable
        Specified by:
        close in interface Scope