lib/sentry/rails/action_cable.rb in sentry-rails-5.20.1 vs lib/sentry/rails/action_cable.rb in sentry-rails-5.21.0
- old
+ new
@@ -1,9 +1,11 @@
+# frozen_string_literal: true
+
module Sentry
module Rails
module ActionCableExtensions
class ErrorHandler
- OP_NAME = "websocket.server".freeze
+ OP_NAME = "websocket.server"
SPAN_ORIGIN = "auto.http.rails.actioncable"
class << self
def capture(connection, transaction_name:, extra_context: nil, &block)
return block.call unless Sentry.initialized?