Constructor and Description |
---|
Spans() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
currentSpan(Class<T> spanFacetType,
Object spanProvider)
Attempts to get a
Span facet from the given object, if it
supports SpanProvider.currentSpan() . |
static Span |
currentSpan(Object spanProvider)
Attempts to get a
Span from the given object, if it
supports SpanProvider.currentSpan() . |
public static Span currentSpan(Object spanProvider)
Span
from the given object, if it
supports SpanProvider.currentSpan()
.spanProvider
- may be null.public static <T> T currentSpan(Class<T> spanFacetType, Object spanProvider)
Span
facet from the given object, if it
supports SpanProvider.currentSpan()
.spanProvider
- may be null.spanFacetType
.