Class: Labkit::Tracing::Rails::ActionView::RenderPartialInstrumenter Private
- Inherits:
-
AbstractInstrumenter
- Object
- AbstractInstrumenter
- Labkit::Tracing::Rails::ActionView::RenderPartialInstrumenter
- Defined in:
- lib/labkit/tracing/rails/action_view/render_partial_instrumenter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
For more information on the payloads: guides.rubyonrails.org/active_support_instrumentation.html
Instance Method Summary collapse
- #span_name(payload) ⇒ Object private
- #tags(payload) ⇒ Object private
Methods inherited from AbstractInstrumenter
Instance Method Details
#span_name(payload) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 12 13 14 15 16 |
# File 'lib/labkit/tracing/rails/action_view/render_partial_instrumenter.rb', line 9 def span_name(payload) identifier = ActionView.template_identifier(payload) if identifier.nil? "render_partial" else "render_partial:#{identifier}" end end |
#tags(payload) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/labkit/tracing/rails/action_view/render_partial_instrumenter.rb', line 18 def (payload) { "component" => COMPONENT_TAG, "template.id" => payload[:identifier] } end |