brave.sampler.Matchers Maven / Gradle / Ivy
/*
* Copyright The OpenZipkin Authors
* SPDX-License-Identifier: Apache-2.0
*/
package brave.sampler;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
/**
* Convenience functions to compose matchers for {@link ParameterizedSampler}.
*
* @see Matcher
* @see ParameterizedSampler
* @since 5.8
*/
public final class Matchers {
/** @since 5.8 */
public static Matcher
alwaysMatch() {
return (Matcher
) Constants.ALWAYS_MATCH;
}
/** @since 5.8 */
public static
Matcher
neverMatch() {
return (Matcher
) Constants.NEVER_MATCH;
}
enum Constants implements Matcher
© 2015 - 2025 Weber Informatics LLC | Privacy Policy