Sha256: 8568c5ed25151322112b517ed64a697d003815bfa4b6fb9ab5d1eb8a0e2354c0

Contents?: true

Size: 426 Bytes

Versions: 13

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

require_relative 'sampler'

module Datadog
  module Tracing
    module Sampling
      # {Datadog::Tracing::Sampling::AllSampler} samples all the traces.
      class AllSampler < Sampler
        def sample?(_trace)
          true
        end

        def sample!(trace)
          trace.sampled = true
        end

        def sample_rate(*_)
          1.0
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.8.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.7.1 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.7.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.6.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.5.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.4.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.3.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.2.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.1.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.0.0 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.0.0.beta2 lib/datadog/tracing/sampling/all_sampler.rb
datadog-2.0.0.beta1 lib/datadog/tracing/sampling/all_sampler.rb