Sha256: d637aa7aec6c47d1b14498d153cfb725a81b67825be78033cda598405c15392b

Contents?: true

Size: 791 Bytes

Versions: 7

Compression:

Stored size: 791 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::Core::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'
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/tracing/sampling/span/ext.rb
datadog-2.8.0 lib/datadog/tracing/sampling/span/ext.rb
datadog-2.7.1 lib/datadog/tracing/sampling/span/ext.rb
datadog-2.7.0 lib/datadog/tracing/sampling/span/ext.rb
datadog-2.6.0 lib/datadog/tracing/sampling/span/ext.rb
datadog-2.5.0 lib/datadog/tracing/sampling/span/ext.rb
datadog-2.4.0 lib/datadog/tracing/sampling/span/ext.rb