module Datadog::Contrib::ActionView::Events::RenderPartial
Defines instrumentation for render_partial.action_view event
Constants
- EVENT_NAME
Public Instance Methods
event_name()
click to toggle source
# File lib/ddtrace/contrib/action_view/events/render_partial.rb, line 18 def event_name self::EVENT_NAME end
process(span, _event, _id, payload)
click to toggle source
# File lib/ddtrace/contrib/action_view/events/render_partial.rb, line 26 def process(span, _event, _id, payload) span.span_type = Datadog::Ext::HTTP::TEMPLATE if (template_name = Utils.normalize_template_name(payload[:identifier])) span.resource = template_name span.set_tag(Ext::TAG_TEMPLATE_NAME, template_name) end # Measure service stats Contrib::Analytics.set_measured(span) record_exception(span, payload) rescue StandardError => e Datadog.logger.debug(e.message) end
span_name()
click to toggle source
# File lib/ddtrace/contrib/action_view/events/render_partial.rb, line 22 def span_name Ext::SPAN_RENDER_PARTIAL end