Class: TraceViz::Collectors::Filters::ExcludeInternalCallFilter

Inherits:
BaseFilter
  • Object
show all
Defined in:
lib/trace_viz/collectors/filters/exclude_internal_call_filter.rb

Constant Summary collapse

INTERNAL_PATH_IDENTIFIER =
"<internal:"
INTERNAL_CLASS_PREFIX =
"TracePoint"

Instance Method Summary collapse

Methods included from Helpers::ConfigHelper

#config, #fetch_general_config

Instance Method Details

#apply?(trace_data) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
15
16
17
# File 'lib/trace_viz/collectors/filters/exclude_internal_call_filter.rb', line 12

def apply?(trace_data)
  [
    internal_path?(trace_data.path),
    internal_class?(trace_data.klass),
  ].none?
end