Class: Sentry::Rails::Tracing::ActionViewSubscriber
- Inherits:
-
AbstractSubscriber
- Object
- AbstractSubscriber
- Sentry::Rails::Tracing::ActionViewSubscriber
- Defined in:
- lib/sentry/rails/tracing/action_view_subscriber.rb
Constant Summary collapse
- EVENT_NAMES =
["render_template.action_view"].freeze
- SPAN_PREFIX =
"template.".freeze
Class Method Summary collapse
Methods inherited from AbstractSubscriber
record_on_current_span, #subscribe_to_event, unsubscribe!
Class Method Details
.subscribe! ⇒ Object
10 11 12 13 14 |
# File 'lib/sentry/rails/tracing/action_view_subscriber.rb', line 10 def self.subscribe! subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload| record_on_current_span(op: SPAN_PREFIX + event_name, start_timestamp: payload[START_TIMESTAMP_NAME], description: payload[:identifier], duration: duration) end end |