Class RunningSpanStore.Filter

    • Constructor Detail

      • Filter

        Filter()
    • Method Detail

      • create

        public static RunningSpanStore.Filter create​(java.lang.String spanName,
                                                     int maxSpansToReturn)
        Returns a new instance of Filter.

        Filters all the spans based on spanName and returns a maximum of maxSpansToReturn.

        Parameters:
        spanName - the name of the span.
        maxSpansToReturn - the maximum number of results to be returned. 0 means all.
        Returns:
        a new instance of Filter.
        Throws:
        java.lang.NullPointerException - if spanName is null.
        java.lang.IllegalArgumentException - if maxSpansToReturn is negative.
        Since:
        0.5
      • getSpanName

        public abstract java.lang.String getSpanName()
        Returns the span name.
        Returns:
        the span name.
        Since:
        0.5
      • getMaxSpansToReturn

        public abstract int getMaxSpansToReturn()
        Returns the maximum number of spans to be returned. 0 means all.
        Returns:
        the maximum number of spans to be returned.
        Since:
        0.5