Sha256: a1370731a5e4ac6333df57ad9ec9c511e2d8e5a32b44c238d7a2c93c5c128764

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true

class SentrySmartSampler
  class ThrottlingThresholdReachedDefinition
    def reached?(rate_limit, throttling_registration, _error)
      rate_limit.throttled? && rate_limit.count == throttling_registration.threshold
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sentry-smart-sampler-0.1.0 lib/sentry_smart_sampler/throttling_threshold_reached_definition.rb