Class: Datadog::Tracing::Sampling::UnlimitedLimiter

Inherits:
RateLimiter
  • Object
show all
Defined in:
lib/datadog/tracing/sampling/rate_limiter.rb

Overview

RateLimiter that accepts all resources, with no limits.

Instance Method Summary collapse

Instance Method Details

#allow?(_) ⇒ Boolean

Returns always true.

Returns:

  • (Boolean)

    always true



175
176
177
# File 'lib/datadog/tracing/sampling/rate_limiter.rb', line 175

def allow?(_)
  true
end

#effective_rateFloat

Returns always 100%.

Returns:

  • (Float)

    always 100%



180
181
182
# File 'lib/datadog/tracing/sampling/rate_limiter.rb', line 180

def effective_rate
  1.0
end