All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.sdk.internal.ScopeConfigurator Maven / Gradle / Ivy

There is a newer version: 1.44.1
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.sdk.internal;

import io.opentelemetry.sdk.common.InstrumentationScopeInfo;
import java.util.function.Function;

/**
 * A {@link ScopeConfigurator} computes configuration for a given {@link InstrumentationScopeInfo}.
 *
 * 

This class is internal and is hence not for public use. Its APIs are unstable and can change * at any time. */ @FunctionalInterface public interface ScopeConfigurator extends Function { /** Create a new builder. */ static ScopeConfiguratorBuilder builder() { return new ScopeConfiguratorBuilder<>(unused -> null); } /** * Convert this {@link ScopeConfigurator} to a builder. Additional added matchers only apply when * {@link #apply(Object)} returns {@code null}. If this configurator contains {@link * ScopeConfiguratorBuilder#setDefault(Object)}, additional matchers are never applied. */ default ScopeConfiguratorBuilder toBuilder() { return new ScopeConfiguratorBuilder<>(this); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy