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