Filter

object Filter
Companion:
class
class Object
trait Matchable
class Any
Filter.type

Type members

Classlikes

case class Constant(result: Boolean) extends Filter

Filter that always returns the same result, regardless of the pattern

Filter that always returns the same result, regardless of the pattern

case class Glob(glob: String) extends Matcher

Matcher that uses a glob pattern expression to match values.

Matcher that uses a glob pattern expression to match values.

case class IncludeExclude(includeFilters: Seq[Matcher], excludeFilters: Seq[Matcher]) extends Filter

Composite Filter that accepts inputs that match at least one of the include filters and none of the exclude filters.

Composite Filter that accepts inputs that match at least one of the include filters and none of the exclude filters.

trait Matcher

Base trait for all matcher implementations

Base trait for all matcher implementations

case class Regex(pattern: String) extends Matcher

Matcher that uses regexes to match values.

Matcher that uses regexes to match values.

case class SingleMatcher(matcher: Matcher) extends Filter

Filter that uses a single pattern to accept test strings.

Filter that uses a single pattern to accept test strings.

Value members

Concrete methods

def from(path: String): Filter

Creates a new Filter from the provided path on Kamon's configuration. The configuration is expected to have the following structure:

Creates a new Filter from the provided path on Kamon's configuration. The configuration is expected to have the following structure:

config { includes = [ "some/pattern", "regex:some[0-9]" ] excludes = [ ] }

By default, the patterns are treated as Glob patterns but users can explicitly configure the pattern type by prefixing the pattern with either "glob:" or "regex:". If any of the elements are missing they will be considered empty.

def from(config: Config): Filter

Creates a new Filter from the provided config. The configuration is expected to have the following structure:

Creates a new Filter from the provided config. The configuration is expected to have the following structure:

config { includes = [ "some/pattern", "regex:some[0-9]" ] excludes = [ ] }

By default the patterns are treated as Glob patterns but users can explicitly configure the pattern type by prefixing the pattern with either "glob:" or "regex:". If any of the elements are missing they will be considered empty.

def fromGlob(glob: String): Filter

Creates a new Filter from a single glob pattern.

Creates a new Filter from a single glob pattern.

def fromRegex(regexPattern: String): Filter

Creates a new Filter from a single regex pattern.

Creates a new Filter from a single regex pattern.

Concrete fields

Filter that accepts any value

Filter that accepts any value

Filter that does not accept any value

Filter that does not accept any value