Sha256: 1991a4c8aedf53eb61efb8551bdd75213f210665472b7f546feedd2a18e83966
Contents?: true
Size: 887 Bytes
Versions: 20
Compression:
Stored size: 887 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 def capture_check_in(slug, status, **options, &block) options[:hint] ||= {} options[:hint][:integration] = integration_name Sentry.capture_check_in(slug, status, **options, &block) end end end
Version data entries
20 entries across 20 versions & 2 rubygems