Class RunningSpanStore.Filter
java.lang.Object
io.opencensus.trace.export.RunningSpanStore.Filter
- Direct Known Subclasses:
AutoValue_RunningSpanStore_Filter
- Enclosing class:
RunningSpanStore
Filter for running spans. Used to filter results returned by the
RunningSpanStore.getRunningSpans(Filter) request.- Since:
- 0.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RunningSpanStore.FilterReturns a new instance ofFilter.abstract intReturns the maximum number of spans to be returned.abstract StringReturns the span name.
-
Constructor Details
-
Filter
Filter()
-
-
Method Details
-
create
Returns a new instance ofFilter.Filters all the spans based on
spanNameand returns a maximum ofmaxSpansToReturn.- Parameters:
spanName- the name of the span.maxSpansToReturn- the maximum number of results to be returned.0means all.- Returns:
- a new instance of
Filter. - Throws:
NullPointerException- ifspanNameisnull.IllegalArgumentException- ifmaxSpansToReturnis negative.- Since:
- 0.5
-
getSpanName
-
getMaxSpansToReturn
public abstract int getMaxSpansToReturn()Returns the maximum number of spans to be returned.0means all.- Returns:
- the maximum number of spans to be returned.
- Since:
- 0.5
-