lib/sentry/rails/action_cable.rb in sentry-rails-5.10.0 vs lib/sentry/rails/action_cable.rb in sentry-rails-5.11.0
- old
+ new
@@ -31,14 +31,11 @@
end
end
end
def start_transaction(env, scope)
- sentry_trace = env["HTTP_SENTRY_TRACE"]
- baggage = env["HTTP_BAGGAGE"]
-
options = { name: scope.transaction_name, source: scope.transaction_source, op: OP_NAME }
- transaction = Sentry::Transaction.from_sentry_trace(sentry_trace, baggage: baggage, **options) if sentry_trace
+ transaction = Sentry.continue_trace(env, **options)
Sentry.start_transaction(transaction: transaction, **options)
end
def finish_transaction(transaction, status_code)
return unless transaction