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.3.0 lib/sentry/integrable.rb
sentry-ruby-core-5.2.1 lib/sentry/integrable.rb
sentry-ruby-core-5.2.0 lib/sentry/integrable.rb
sentry-ruby-core-5.1.1 lib/sentry/integrable.rb
sentry-ruby-core-5.1.0 lib/sentry/integrable.rb
sentry-ruby-core-5.0.2 lib/sentry/integrable.rb
sentry-ruby-core-5.0.1 lib/sentry/integrable.rb
sentry-ruby-core-5.0.0 lib/sentry/integrable.rb
sentry-ruby-core-4.9.2 lib/sentry/integrable.rb
sentry-ruby-core-4.9.1 lib/sentry/integrable.rb
sentry-ruby-core-4.9.0 lib/sentry/integrable.rb
sentry-ruby-core-4.8.3 lib/sentry/integrable.rb
sentry-ruby-core-4.8.2 lib/sentry/integrable.rb
sentry-ruby-core-4.8.1 lib/sentry/integrable.rb