Method: OneApm::Support::TracedMethodStack#pop_frame

Defined in:
lib/one_apm/support/traced_method_stack.rb

#pop_frame(state, expected_frame, name, time, deduct_call_time_from_parent = true) ⇒ Object

Pops a frame off the transaction stack - this updates the transaction sampler that we’ve finished execution of a traced method.

expected_frame should be TracedMethodFrame from the corresponding push_frame call.

name will be applied to the generated transaction trace segment.



50
51
52
53
54
55
56
57
58
# File 'lib/one_apm/support/traced_method_stack.rb', line 50

def pop_frame(state, expected_frame, name, time, deduct_call_time_from_parent=true)
  frame = fetch_matching_frame(expected_frame)

  note_children_time(frame, time, deduct_call_time_from_parent)

  transaction_sampler.notice_pop_frame(state, name, time) if sampler_enabled?
  frame.name = name
  frame
end