StacktraceCleaner (StacktraceCleaner v0.1.1)
Stacktraces often include many lines that are not relevant for the context under review. This makes it hard to find the signal amongst many noise, and adds debugging time. StacktraceCleaner is a module to remove those noises and make them easier to see.
Link to this section Summary
Functions
Cleans stacktraces.
Extracts first stacktrace from StacktraceCleaner.current_stacktraces
Gets cleaned stacktraces.
Link to this section Types
Link to this section Functions
Link to this function
clean(stacktraces, match_path \\ nil)
Specs
clean([type_stacktrace()], String.t() | nil) :: [type_stacktrace()]
Cleans stacktraces.
- match_path: If you want to extract more strictly, you can specify it with an argument.
Link to this function
current_stacktrace(match_path \\ nil)
Specs
current_stacktrace(String.t() | nil) :: type_stacktrace()
Extracts first stacktrace from StacktraceCleaner.current_stacktraces
- match_path: If you want to extract more strictly, you can specify it with an argument.
Link to this function
current_stacktraces(match_path \\ nil)
Specs
current_stacktraces(String.t() | nil) :: [type_stacktrace()]
Gets cleaned stacktraces.
- match_path: If you want to extract more strictly, you can specify it with an argument.