# File lib/new_relic/agent/transaction_sample_builder.rb, line 128 def scope_depth depth = -1 # have to account for the root current = @current_node while(current) depth += 1 current = current.parent_node end depth end