Class: Mnemosyne::Probes::ActionView::RenderTemplate::Probe

Inherits:
Mnemosyne::Probe show all
Defined in:
lib/mnemosyne/probes/action_view/render_template.rb

Instance Method Summary collapse

Methods inherited from Mnemosyne::Probe

#install, #setup, subscribe, subscriptions

Methods included from Logging

#logger

Instance Method Details

#call(trace, _name, start, finish, _id, payload) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/mnemosyne/probes/action_view/render_template.rb', line 10

def call(trace, _name, start, finish, _id, payload)
  start  = ::Mnemosyne::Clock.to_tick(start)
  finish = ::Mnemosyne::Clock.to_tick(finish)

  span = ::Mnemosyne::Span.new(
    'view.render.template.rails',
    start:,
    finish:,
    meta: payload
  )

  trace << span
end