lib/ddtrace/contrib/action_view/events/render_partial.rb in ddtrace-0.30.1 vs lib/ddtrace/contrib/action_view/events/render_partial.rb in ddtrace-0.31.0

- old
+ new

@@ -24,15 +24,17 @@ end def process(span, _event, _id, payload) span.span_type = Datadog::Ext::HTTP::TEMPLATE - template_name = Utils.normalize_template_name(payload[:identifier]) - span.set_tag(Ext::TAG_TEMPLATE_NAME, template_name) if template_name + if (template_name = Utils.normalize_template_name(payload[:identifier])) + span.resource = template_name + span.set_tag(Ext::TAG_TEMPLATE_NAME, template_name) + end record_exception(span, payload) rescue StandardError => e - Datadog::Tracer.log.debug(e.message) + Datadog::Logger.log.debug(e.message) end end end end end