lib/trace_location/collector.rb in trace_location-0.2.0 vs lib/trace_location/collector.rb in trace_location-0.3.0
- old
+ new
@@ -7,9 +7,11 @@
def self.collect(&block)
events = []
hierarchy = 0
tracer = TracePoint.new(:call, :return) do |trace_point|
+ next unless trace_point.path.include?(::TraceLocation.config.gems_dir)
+
case trace_point.event
when :call
events << Event.new(
event: trace_point.event,
path: trace_point.path,