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.3.2 lib/sentry/integrable.rb
sentry-ruby-core-4.3.1 lib/sentry/integrable.rb
sentry-ruby-core-4.3.0 lib/sentry/integrable.rb
sentry-ruby-core-4.2.2 lib/sentry/integrable.rb
sentry-ruby-core-4.2.1 lib/sentry/integrable.rb
sentry-ruby-core-4.2.0 lib/sentry/integrable.rb
sentry-ruby-core-4.1.6 lib/sentry/integrable.rb
sentry-ruby-core-4.1.5 lib/sentry/integrable.rb
sentry-ruby-core-4.1.5.pre.beta.1 lib/sentry/integrable.rb
sentry-ruby-core-4.1.5.pre.beta.0 lib/sentry/integrable.rb
sentry-ruby-4.1.4 lib/sentry/integrable.rb
sentry-ruby-4.1.3 lib/sentry/integrable.rb
sentry-ruby-4.1.2 lib/sentry/integrable.rb