Class: SentrySmartSampler::ThrottlingThresholdReachedDefinition
- Inherits:
-
Object
- Object
- SentrySmartSampler::ThrottlingThresholdReachedDefinition
- Defined in:
- lib/sentry_smart_sampler/throttling_threshold_reached_definition.rb
Instance Method Summary collapse
Instance Method Details
#reached?(rate_limit, throttling_registration, _error) ⇒ Boolean
5 6 7 |
# File 'lib/sentry_smart_sampler/throttling_threshold_reached_definition.rb', line 5 def reached?(rate_limit, throttling_registration, _error) rate_limit.throttled? && rate_limit.count == throttling_registration.threshold end |