public class TestTracer extends Object implements org.springframework.cloud.sleuth.Tracer, AutoCloseable
| Constructor and Description |
|---|
TestTracer(org.springframework.cloud.sleuth.Tracer delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.springframework.cloud.sleuth.BaggageInScope |
createBaggage(String name) |
org.springframework.cloud.sleuth.BaggageInScope |
createBaggage(String name,
String value) |
Queue<org.springframework.cloud.sleuth.Span> |
createdSpans() |
org.springframework.cloud.sleuth.Span |
currentSpan() |
org.springframework.cloud.sleuth.SpanCustomizer |
currentSpanCustomizer() |
org.springframework.cloud.sleuth.CurrentTraceContext |
currentTraceContext() |
Map<String,String> |
getAllBaggage() |
org.springframework.cloud.sleuth.BaggageInScope |
getBaggage(String name) |
org.springframework.cloud.sleuth.BaggageInScope |
getBaggage(org.springframework.cloud.sleuth.TraceContext traceContext,
String name) |
org.springframework.cloud.sleuth.Span |
nextSpan() |
org.springframework.cloud.sleuth.Span |
nextSpan(org.springframework.cloud.sleuth.Span parent) |
org.springframework.cloud.sleuth.Span.Builder |
spanBuilder() |
org.springframework.cloud.sleuth.ScopedSpan |
startScopedSpan(String name) |
org.springframework.cloud.sleuth.TraceContext.Builder |
traceContextBuilder() |
org.springframework.cloud.sleuth.Tracer.SpanInScope |
withSpan(org.springframework.cloud.sleuth.Span span) |
public Map<String,String> getAllBaggage()
getAllBaggage in interface org.springframework.cloud.sleuth.BaggageManagerpublic org.springframework.cloud.sleuth.BaggageInScope getBaggage(String name)
getBaggage in interface org.springframework.cloud.sleuth.BaggageManagerpublic org.springframework.cloud.sleuth.BaggageInScope getBaggage(org.springframework.cloud.sleuth.TraceContext traceContext,
String name)
getBaggage in interface org.springframework.cloud.sleuth.BaggageManagerpublic org.springframework.cloud.sleuth.BaggageInScope createBaggage(String name)
createBaggage in interface org.springframework.cloud.sleuth.BaggageManagerpublic org.springframework.cloud.sleuth.BaggageInScope createBaggage(String name, String value)
createBaggage in interface org.springframework.cloud.sleuth.BaggageManagerpublic org.springframework.cloud.sleuth.Span nextSpan()
nextSpan in interface org.springframework.cloud.sleuth.Tracerpublic org.springframework.cloud.sleuth.Span nextSpan(org.springframework.cloud.sleuth.Span parent)
nextSpan in interface org.springframework.cloud.sleuth.Tracerpublic org.springframework.cloud.sleuth.Tracer.SpanInScope withSpan(org.springframework.cloud.sleuth.Span span)
withSpan in interface org.springframework.cloud.sleuth.Tracerpublic org.springframework.cloud.sleuth.ScopedSpan startScopedSpan(String name)
startScopedSpan in interface org.springframework.cloud.sleuth.Tracerpublic org.springframework.cloud.sleuth.Span.Builder spanBuilder()
spanBuilder in interface org.springframework.cloud.sleuth.Tracerpublic org.springframework.cloud.sleuth.TraceContext.Builder traceContextBuilder()
traceContextBuilder in interface org.springframework.cloud.sleuth.Tracer@Nullable public org.springframework.cloud.sleuth.SpanCustomizer currentSpanCustomizer()
currentSpanCustomizer in interface org.springframework.cloud.sleuth.Tracer@Nullable public org.springframework.cloud.sleuth.Span currentSpan()
currentSpan in interface org.springframework.cloud.sleuth.Tracerpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic Queue<org.springframework.cloud.sleuth.Span> createdSpans()
public org.springframework.cloud.sleuth.CurrentTraceContext currentTraceContext()
currentTraceContext in interface org.springframework.cloud.sleuth.TracerCopyright © 2023 Pivotal Software, Inc.. All rights reserved.