Skip to content

feat: add pipeline execution timing and performance tracing#288

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-pipeline-execution-timing
Draft

feat: add pipeline execution timing and performance tracing#288
Copilot wants to merge 3 commits intomainfrom
copilot/add-pipeline-execution-timing

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 11, 2026

Adds per-step and per-phase execution timing to the pipeline, surfacing performance data through the existing tracing infrastructure without new dependencies.

Changes

PipelineStep trait (step.rs)

  • Added name() -> &str with default "PipelineStep"; concrete steps override for actionable log output

StrategyStep (strategy_step.rs)

  • Overrides name()"StrategyStep"

TransformRegistry::apply_all (registry.rs)

  • Times each transform with Instant; logs duration_ms at DEBUG level as a structured field alongside the existing transform field

Pipeline (pipeline.rs)

  • run_steps: times each step, logs name + duration_ms at DEBUG
  • run: times the transform phase, step phase, and total pipeline (reusing transform_start as the pipeline epoch to avoid measurement gaps); logs each at DEBUG

Observability

Timing is visible via existing CLI flags — no config changes needed:

# per-step + per-phase timing
renderflow --verbose build --config doc.yaml

# also exposes TRACE-level transform internals
renderflow --debug build --config doc.yaml

Example log output at DEBUG:

DEBUG transform=EmojiTransform duration_ms=0 Transform completed
DEBUG transform=VariableSubstitutionTransform duration_ms=1 Transform completed
DEBUG duration_ms=2 Transform phase completed
DEBUG step=StrategyStep duration_ms=340 Pipeline step completed
DEBUG duration_ms=342 Pipeline execution completed

Copilot AI linked an issue Apr 11, 2026 that may be closed by this pull request
5 tasks
Copilot AI changed the title [WIP] Add pipeline execution timing and performance tracing feat: add pipeline execution timing and performance tracing Apr 11, 2026
Copilot AI requested a review from szmyty April 11, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🧠 Add pipeline execution timing and performance tracing

2 participants