lib/sentry/rails/active_job.rb in sentry-rails-5.20.1 vs lib/sentry/rails/active_job.rb in sentry-rails-5.21.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Sentry
module Rails
module ActiveJobExtensions
def perform_now
if !Sentry.initialized? || already_supported_by_sentry_integration?
@@ -14,11 +16,11 @@
def already_supported_by_sentry_integration?
Sentry.configuration.rails.skippable_job_adapters.include?(self.class.queue_adapter.class.to_s)
end
class SentryReporter
- OP_NAME = "queue.active_job".freeze
- SPAN_ORIGIN = "auto.queue.active_job".freeze
+ OP_NAME = "queue.active_job"
+ SPAN_ORIGIN = "auto.queue.active_job"
class << self
def record(job, &block)
Sentry.with_scope do |scope|
begin