Sha256: 6e759ea8fe5e7c263bef1bcad6829103494c1425029eba4fef62f68f377d38d6

Contents?: true

Size: 675 Bytes

Versions: 34

Compression:

Stored size: 675 Bytes

Contents

# frozen_string_literal: true

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

34 entries across 34 versions & 2 rubygems

Version Path
sentry-ruby-core-5.11.0 lib/sentry/integrable.rb
sentry-ruby-5.11.0 lib/sentry/integrable.rb
sentry-ruby-5.10.0 lib/sentry/integrable.rb
sentry-ruby-core-5.10.0 lib/sentry/integrable.rb
sentry-ruby-5.9.0 lib/sentry/integrable.rb
sentry-ruby-core-5.9.0 lib/sentry/integrable.rb
sentry-ruby-core-5.8.0 lib/sentry/integrable.rb
sentry-ruby-5.8.0 lib/sentry/integrable.rb
sentry-ruby-core-5.7.0 lib/sentry/integrable.rb
sentry-ruby-5.7.0 lib/sentry/integrable.rb
sentry-ruby-core-5.6.0 lib/sentry/integrable.rb
sentry-ruby-5.6.0 lib/sentry/integrable.rb
sentry-ruby-core-5.5.0 lib/sentry/integrable.rb
sentry-ruby-5.5.0 lib/sentry/integrable.rb
sentry-ruby-5.4.2 lib/sentry/integrable.rb
sentry-ruby-core-5.4.2 lib/sentry/integrable.rb
sentry-ruby-5.4.1 lib/sentry/integrable.rb
sentry-ruby-core-5.4.1 lib/sentry/integrable.rb
sentry-ruby-core-5.4.0 lib/sentry/integrable.rb
sentry-ruby-core-5.3.1 lib/sentry/integrable.rb