@Immutable public abstract static class RunningSpanStore.Filter extends Object
RunningSpanStore.getRunningSpans(Filter)
request.Modifier and Type | Method and Description |
---|---|
static RunningSpanStore.Filter |
create(String spanName,
int maxSpansToReturn)
Returns a new instance of
Filter . |
abstract int |
getMaxSpansToReturn()
Returns the maximum number of spans to be returned.
|
abstract String |
getSpanName()
Returns the span name.
|
public static RunningSpanStore.Filter create(String spanName, int maxSpansToReturn)
Filter
.
Filters all the spans based on spanName
and returns a maximum of maxSpansToReturn
.
spanName
- the name of the span.maxSpansToReturn
- the maximum number of results to be returned. 0
means all.Filter
.NullPointerException
- if spanName
is null
.IllegalArgumentException
- if maxSpansToReturn
is negative.public abstract String getSpanName()
public abstract int getMaxSpansToReturn()
0
means all.