Class: Labkit::Tracing::Rails::ActionView::RenderTemplateInstrumenter
Overview
Instance Method Summary
collapse
#finish, #scope_stack, #start
Instance Method Details
#span_name(payload) ⇒ Object
9
10
11
12
13
14
15
16
|
# File 'lib/labkit/tracing/rails/action_view/render_template_instrumenter.rb', line 9
def span_name(payload)
identifier = ActionView.template_identifier(payload)
if identifier.nil?
"render_template"
else
"render_template:#{identifier}"
end
end
|
18
19
20
|
# File 'lib/labkit/tracing/rails/action_view/render_template_instrumenter.rb', line 18
def tags(payload)
{ "component" => COMPONENT_TAG, "template.id" => payload[:identifier], "template.layout" => payload[:layout] }
end
|