Class SimpleSpanInScope
java.lang.Object
io.micrometer.tracing.test.simple.SimpleSpanInScope
- All Implemented Interfaces:
io.micrometer.tracing.Tracer.SpanInScope,Closeable,AutoCloseable
A test implementation of a span in scope.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleSpanInScope(io.micrometer.tracing.CurrentTraceContext.Scope scope) Creates a new instance ofSimpleSpanInScope.SimpleSpanInScope(io.micrometer.tracing.Span span, ThreadLocal<io.micrometer.tracing.SpanAndScope> scopedSpans) Deprecated. -
Method Summary
-
Constructor Details
-
SimpleSpanInScope
@Deprecated public SimpleSpanInScope(io.micrometer.tracing.Span span, ThreadLocal<io.micrometer.tracing.SpanAndScope> scopedSpans) Creates a new instance ofSimpleSpanInScope.- Parameters:
span- spanscopedSpans- scoped spans
-
SimpleSpanInScope
public SimpleSpanInScope(io.micrometer.tracing.CurrentTraceContext.Scope scope) Creates a new instance ofSimpleSpanInScope.- Parameters:
scope- current trace context scope
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceio.micrometer.tracing.Tracer.SpanInScope
-
isClosed
public boolean isClosed()- Returns:
- was scoped closed?
-
SimpleSpanInScope(io.micrometer.tracing.CurrentTraceContext.Scope)