lib/sentry/rails/tracing/action_view_subscriber.rb in sentry-rails-5.20.1 vs lib/sentry/rails/tracing/action_view_subscriber.rb in sentry-rails-5.21.0
- old
+ new
@@ -1,13 +1,15 @@
+# frozen_string_literal: true
+
require "sentry/rails/tracing/abstract_subscriber"
module Sentry
module Rails
module Tracing
class ActionViewSubscriber < AbstractSubscriber
EVENT_NAMES = ["render_template.action_view"].freeze
- SPAN_PREFIX = "template.".freeze
- SPAN_ORIGIN = "auto.template.rails".freeze
+ SPAN_PREFIX = "template."
+ SPAN_ORIGIN = "auto.template.rails"
def self.subscribe!
subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload|
record_on_current_span(
op: SPAN_PREFIX + event_name,