Sha256: 5be3dec3be8a9adfd9d31b155e0f36653f53f7838851909ddd4be74546b6f5ac
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
# frozen_string_literal: true require "active_support" require "active_support/core_ext" require "zeitwerk" loader = Zeitwerk::Loader.for_gem loader.ignore("#{__dir__}/sentry-smart-sampler.rb") loader.setup class SentrySmartSampler def self.configuration @configuration ||= SentrySmartSampler::Configuration.new end def self.configure yield configuration end def self.sample_rate_registration_for(error) configuration.sampling_rate_per_error_registry.sample_rate_registration_for(error) end def self.throttling_registration_for(error) configuration.throttling_per_error_registry.throttling_registration_for(error) end def self.call(event, hint) SentrySmartSampler::Sampler.new(self).call(event, hint) end def self.reset! @configuration = nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sentry-smart-sampler-0.1.0 | lib/sentry_smart_sampler.rb |