Sha256: 8eff5f693556c00522654ecfca8650fba389c81b72884feff4da1d56bb85494e

Contents?: true

Size: 619 Bytes

Versions: 5

Compression:

Stored size: 619 Bytes

Contents

# typed: true
module Datadog
  module Ext
    module Sampling
      ENV_SAMPLE_RATE = 'DD_TRACE_SAMPLE_RATE'.freeze
      ENV_RATE_LIMIT = 'DD_TRACE_RATE_LIMIT'.freeze

      # If rule sampling is applied to a span, set this metric the sample rate configured for that rule.
      # This should be done regardless of sampling outcome.
      RULE_SAMPLE_RATE = '_dd.rule_psr'.freeze

      # If rate limiting is checked on a span, set this metric the effective rate limiting rate applied.
      # This should be done regardless of rate limiting outcome.
      RATE_LIMITER_RATE = '_dd.limit_psr'.freeze
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/ext/sampling.rb
ddtrace-0.54.1 lib/ddtrace/ext/sampling.rb
ddtrace-0.54.0 lib/ddtrace/ext/sampling.rb
ddtrace-0.53.0 lib/ddtrace/ext/sampling.rb
ddtrace-0.52.0 lib/ddtrace/ext/sampling.rb