Pipeline.Debug.NestedExecution (pipeline v0.0.1)
View SourceDebugging tools and utilities for nested pipeline execution.
Provides interactive debugging capabilities, execution analysis, and troubleshooting tools for complex nested pipeline workflows.
Summary
Functions
Analyze execution for performance issues and optimization opportunities.
Compare execution performance between different traces.
Print comprehensive execution tree with debugging information.
Generate a debugging report for troubleshooting.
Show context information at a specific point in execution.
Search for specific patterns in execution traces.
Start an interactive debugging session for a trace context.
Types
Functions
@spec analyze_execution(map(), map()) :: analysis_result()
Analyze execution for performance issues and optimization opportunities.
Parameters
execution_tree
: The execution tree to analyzeoptions
: Analysis options
Returns
- Analysis results with issues and recommendations
Compare execution performance between different traces.
Parameters
trace_contexts
: List of trace contexts to compareoptions
: Comparison options
Returns
- Formatted comparison report
Print comprehensive execution tree with debugging information.
Parameters
context
: Execution context or debug sessionoptions
: Display options
Returns
- Formatted debug output
@spec generate_debug_report(trace_context()) :: String.t()
Generate a debugging report for troubleshooting.
Parameters
trace_context
: The trace context to analyzeerror
: Optional error that occurredoptions
: Report generation options
Returns
- Comprehensive debugging report
@spec generate_debug_report(trace_context(), any()) :: String.t()
@spec generate_debug_report(trace_context(), any(), map()) :: String.t()
Show context information at a specific point in execution.
Parameters
context
: Execution context to inspectstep
: Optional step information
Returns
- Formatted context information
Search for specific patterns in execution traces.
Parameters
trace_context
: Trace context to searchpattern
: Search pattern (string or regex)search_in
: What to search in (:pipeline_ids, :step_names, :errors, :all)
Returns
- List of matching spans with context
@spec start_debug_session(trace_context()) :: debug_session()
Start an interactive debugging session for a trace context.
Parameters
trace_context
: The trace context to debugoptions
: Debug session options
Returns
- Debug session context
@spec start_debug_session(trace_context(), map()) :: debug_session()