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

org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.package-info Maven / Gradle / Ivy

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

/**
 * This package contains {@link org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.Sampler}s for selecting traces
 * that are recorded and exported. 
* *

Sampling is a mechanism to control the noise and overhead introduced by OpenTelemetry by * reducing the number of samples of traces collected and sent to the backend. See the OpenTelemetry * specification for more details.
* *

The following sampling strategies are provided here: * *

{@link org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.Sampler#alwaysOff()} : This strategy will ensure * that no Spans are ever sent to the export pipeline. * *

{@link org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.Sampler#alwaysOn()} : This strategy will ensure * that every Span will be sent to the export pipeline. * *

{@link org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.Sampler#traceIdRatioBased(double)} : This strategy * will sample the provided fraction of Spans, deterministically based on the TraceId of the Spans. * This means that all spans from the a given trace will have the same sampling result. * *

{@link * org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.Sampler#parentBased(org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.Sampler)} * : This strategy will always use the sampled state of the parent span when deciding whether to * sample a Span or not. If the the Span has no parent, the provided "root" Sampler will be used for * that decision. The parent-based strategy is highly configurable, using the {@link * org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.ParentBasedSamplerBuilder} which can be acquired from the * {@link * org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.Sampler#parentBasedBuilder(org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers.Sampler)} * method. */ @ParametersAreNonnullByDefault package org.apache.rocketmq.shaded.io.opentelemetry.sdk.trace.samplers; import javax.annotation.ParametersAreNonnullByDefault;





© 2015 - 2024 Weber Informatics LLC | Privacy Policy