lib/sentry/rails/tracing/action_view_subscriber.rb in sentry-rails-5.0.2 vs lib/sentry/rails/tracing/action_view_subscriber.rb in sentry-rails-5.1.0

- old
+ new

@@ -3,13 +3,14 @@ module Sentry module Rails module Tracing class ActionViewSubscriber < AbstractSubscriber EVENT_NAMES = ["render_template.action_view"].freeze + SPAN_PREFIX = "template.".freeze def self.subscribe! subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload| - record_on_current_span(op: event_name, start_timestamp: payload[START_TIMESTAMP_NAME], description: payload[:identifier], duration: duration) + record_on_current_span(op: SPAN_PREFIX + event_name, start_timestamp: payload[START_TIMESTAMP_NAME], description: payload[:identifier], duration: duration) end end end end end