public class Plumbr
extends java.lang.Object
Span or access the currently
active Span. If Plumbr Agent is attached and supports this API version, then API calls will be delegated to
it. Otherwise, all calls will be a NO-OP.| Modifier and Type | Field and Description |
|---|---|
static int |
API_VERSION |
| Constructor and Description |
|---|
Plumbr() |
| Modifier and Type | Method and Description |
|---|---|
static Span |
getCurrentSpan()
Return currently active span, if any.
|
static Span |
newSpan()
Create a new transaction and return its root span.
|
public static final int API_VERSION
public static Span newSpan()
Span.start().Span.isNull()
returns true) if Plumbr Agent is not attached or is too old to support this API version.public static Span getCurrentSpan()
Span.isNull() returns true) if there is no active span, or if
Plumbr Agent is not attached or is too old to support this API version.