Class: TraceViz::Collectors::Steps::AssignDepthForReturnStep

Inherits:
BaseStep
  • Object
show all
Defined in:
lib/trace_viz/collectors/steps/assign_depth_for_return_step.rb

Instance Method Summary collapse

Methods inherited from BaseStep

#initialize

Methods included from Helpers::ConfigHelper

#config, #fetch_general_config

Methods included from Helpers::TrackingHelper

#active_call_stack, #current_call, #current_depth, #tracker

Constructor Details

This class inherits a constructor from TraceViz::Collectors::Steps::BaseStep

Instance Method Details

#call(trace_data) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/trace_viz/collectors/steps/assign_depth_for_return_step.rb', line 9

def call(trace_data)
  assign_depth(trace_data) if valid?(trace_data)
  trace_data
rescue StandardError => e
  logger.error("Depth assignment failed for trace_data ID: #{trace_data.id} - #{e.message}")
  nil
end