Sha256: a0a60d4608ec34eb53b0b676c182260c4784b95228d2c99209e8bc006a5d5496

Contents?: true

Size: 644 Bytes

Versions: 33

Compression:

Stored size: 644 Bytes

Contents

module Sentry
  module Integrable
    def register_integration(name:, version:)
      Sentry.register_integration(name, version)
      @integration_name = name
    end

    def integration_name
      @integration_name
    end

    def capture_exception(exception, **options, &block)
      options[:hint] ||= {}
      options[:hint][:integration] = integration_name
      Sentry.capture_exception(exception, **options, &block)
    end

    def capture_message(message, **options, &block)
      options[:hint] ||= {}
      options[:hint][:integration] = integration_name
      Sentry.capture_message(message, **options, &block)
    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
sentry-ruby-core-4.8.0 lib/sentry/integrable.rb
sentry-ruby-core-4.7.3 lib/sentry/integrable.rb
sentry-ruby-core-4.7.2 lib/sentry/integrable.rb
sentry-ruby-core-4.7.1 lib/sentry/integrable.rb
sentry-ruby-core-4.7.0 lib/sentry/integrable.rb
sentry-ruby-core-4.6.5 lib/sentry/integrable.rb
sentry-ruby-core-4.6.4 lib/sentry/integrable.rb
sentry-ruby-core-4.6.3 lib/sentry/integrable.rb
sentry-ruby-core-4.6.2 lib/sentry/integrable.rb
sentry-ruby-core-4.6.1 lib/sentry/integrable.rb
sentry-ruby-core-4.6.0 lib/sentry/integrable.rb
sentry-ruby-core-4.6.0.pre.beta.0 lib/sentry/integrable.rb
sentry-ruby-core-4.5.2 lib/sentry/integrable.rb
sentry-ruby-core-4.5.1 lib/sentry/integrable.rb
sentry-ruby-core-4.5.0 lib/sentry/integrable.rb
sentry-ruby-core-4.5.0.pre.beta.1 lib/sentry/integrable.rb
sentry-ruby-core-4.4.2 lib/sentry/integrable.rb
sentry-ruby-core-4.4.1 lib/sentry/integrable.rb
sentry-ruby-core-4.4.0 lib/sentry/integrable.rb
sentry-ruby-core-4.4.0.pre.beta.0 lib/sentry/integrable.rb