| Class | NewRelic::Agent::TracedMethodStack |
| In: |
lib/new_relic/agent/traced_method_stack.rb
|
| Parent: | Object |
TracedMethodStack is responsible for tracking the push and pop of methods that we are tracing, notifying the transaction sampler, and calculating exclusive time when a method is complete. This is allowed whether a transaction is in progress not.
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 node.
Pushes a frame onto the transaction stack - this generates a Agent::Transaction::TraceNode at the end of transaction execution.
The generated node won‘t be named until pop_frame is called.
tag should be a Symbol, and is only for debugging purposes to identify this frame if the stack gets corrupted.