lib/sentry/rails/active_job.rb in sentry-rails-5.4.2 vs lib/sentry/rails/active_job.rb in sentry-rails-5.5.0
- old
+ new
@@ -18,15 +18,15 @@
class SentryReporter
class << self
def record(job, &block)
Sentry.with_scope do |scope|
begin
- scope.set_transaction_name(job.class.name)
+ scope.set_transaction_name(job.class.name, source: :task)
transaction =
if job.is_a?(::Sentry::SendEventJob)
nil
else
- Sentry.start_transaction(name: scope.transaction_name, op: "active_job")
+ Sentry.start_transaction(name: scope.transaction_name, source: scope.transaction_source, op: "active_job")
end
scope.set_span(transaction) if transaction
yield.tap do