public class Tracer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Tracer.Builder |
Modifier and Type | Field and Description |
---|---|
static String |
SPAN_RECEIVER_CLASSES_KEY |
Modifier and Type | Method and Description |
---|---|
TraceScope |
activateSpan(Span span) |
void |
close() |
static Tracer |
curThreadTracer() |
static Span |
getCurrentSpan()
Return active span.
|
String |
getName() |
TraceScope |
newScope(String description) |
TraceScope |
newScope(String description,
SpanContext spanCtx) |
TraceScope |
newScope(String description,
SpanContext spanCtx,
boolean finishSpanOnClose) |
Span |
newSpan(String description,
SpanContext spanCtx) |
public static final String SPAN_RECEIVER_CLASSES_KEY
public Tracer(String name)
public static Tracer curThreadTracer()
public static Span getCurrentSpan()
public TraceScope newScope(String description)
public Span newSpan(String description, SpanContext spanCtx)
public TraceScope newScope(String description, SpanContext spanCtx)
public TraceScope newScope(String description, SpanContext spanCtx, boolean finishSpanOnClose)
public TraceScope activateSpan(Span span)
public void close()
public String getName()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.