Sha256: 0669a0e8ec9cfcf6770cbd472bf75bf32710014ac1feac89449123e7842ebdcf

Contents?: true

Size: 973 Bytes

Versions: 3

Compression:

Stored size: 973 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module Tracing
    module Sampling
      module Span
        # Single Span Sampling constants.
        module Ext
          # Accept all spans (100% retention).
          DEFAULT_SAMPLE_RATE = 1.0
          # Unlimited.
          # @see Datadog::Tracing::Sampling::TokenBucket
          DEFAULT_MAX_PER_SECOND = -1

          # Sampling decision method used to come to the sampling decision for this span
          TAG_MECHANISM = '_dd.span_sampling.mechanism'
          # Sampling rate applied to this span, if a rule applies
          TAG_RULE_RATE = '_dd.span_sampling.rule_rate'
          # Rate limit configured for this span, if a rule applies
          TAG_MAX_PER_SECOND = '_dd.span_sampling.max_per_second'

          # This span was sampled on account of a Span Sampling Rule
          # @see Datadog::Tracing::Sampling::Span::Rule
          MECHANISM_SPAN_SAMPLING_RATE = 8
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-1.5.2 lib/datadog/tracing/sampling/span/ext.rb
ddtrace-1.5.1 lib/datadog/tracing/sampling/span/ext.rb
ddtrace-1.5.0 lib/datadog/tracing/sampling/span/ext.rb