Module: Instana::Instrumentation::ActionView::PartialRenderer
- Defined in:
- lib/instana/instrumentation/action_view.rb
Instance Method Summary collapse
- #render_collection(*args) ⇒ Object
- #render_partial(*args) ⇒ Object
- #render_partial_template(*args) ⇒ Object
Instance Method Details
#render_collection(*args) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/instana/instrumentation/action_view.rb', line 19 def render_collection(*args) call_payload = { render: { type: :collection, name: @path.to_s } } ::Instana.tracer.in_span(:render, attributes: call_payload) { super(*args) } end |
#render_partial(*args) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/instana/instrumentation/action_view.rb', line 8 def render_partial(*args) call_payload = { render: { type: :partial, name: @options.is_a?(Hash) ? @options[:partial].to_s : 'Unknown' } } ::Instana.tracer.in_span(:render, attributes: call_payload) { super(*args) } end |
#render_partial_template(*args) ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/instana/instrumentation/action_view.rb', line 30 def render_partial_template(*args) call_payload = { render: { type: :partial, name: @options.is_a?(Hash) ? @options[:partial].to_s : 'Unknown' } } ::Instana.tracer.in_span(:render, attributes: call_payload) { super(*args) } end |