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

io.opentelemetry.sdk.trace.samplers.SamplingDecision Maven / Gradle / Ivy

The newest version!
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.sdk.trace.samplers;

/** A decision on whether a span should be recorded, recorded and sampled or dropped. */
public enum SamplingDecision {
  /** Span is dropped. The resulting span will be completely no-op. */
  DROP,
  /**
   * Span is recorded only. The resulting span will record all information like timings and
   * attributes but will not be exported. Downstream {@linkplain Sampler#parentBased(Sampler)
   * parent-based} samplers will not sample the span.
   */
  RECORD_ONLY,
  /**
   * Span is recorded and sampled. The resulting span will record all information like timings and
   * attributes and will be exported.
   */
  RECORD_AND_SAMPLE,
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy