Skip to content

Conversation

@edmocosta
Copy link
Collaborator

@edmocosta edmocosta commented Jan 9, 2026

  • [experimental] Added support for debugging transform processors configs
  • Added support to multiple configurations blocks, including support to YAML component type and IDs keys, e.g transform/rename_fields".
  • The result view and examples of config and payload are now WASM-driven. It also includes additional executor's metadata.
  • Changed the transform processor examples to use the new context inferred syntax.
  • Added WASM panic handler, showing the error also on the UI (in addition to the console).
  • Changed the config panel to not render the code mirror editors on every panel activation.
  • Adding several missing unit tests.
  • [chore] Split PData consumers from executors logic.
  • [chore] Renamed CI command references to processors as executors.
  • [chore] Bump default dependencies versions.

@edmocosta edmocosta requested a review from Copilot January 9, 2026 13:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces experimental debugger support for transform processor configurations, adds support for multiple configuration blocks with YAML component type/ID keys, and performs major refactoring to separate consumer logic from executor implementation while improving test coverage.

Key changes:

  • Debugger Implementation: Added step-by-step debugging capabilities for transform processor configurations with UI controls and breakpoint support
  • Multiple Configuration Support: Implemented parsing and execution of multiple configuration blocks (e.g., transform/rename_fields) in a single YAML file
  • Architecture Refactoring: Split PData consumers from executor logic, introducing new Consumer, Observable, and Debugger interfaces with improved separation of concerns

Reviewed changes

Copilot reviewed 43 out of 44 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
web/src/components/playground.js Enhanced playground with debugger state management, executor selection, and breakpoint handling
web/src/components/panels/result-panel.js Added configurable view options and improved editor lifecycle management
web/src/components/panels/payload-panel.js Added read-only mode support and dynamic example loading
web/src/components/panels/config-panel.js Implemented debugger UI controls, breakpoint gutter, and step-through functionality
web/src/components/examples.js Simplified examples structure to signal-based payload defaults
web/src/components/controls/index.js Updated controls to use executor terminology and grouped display
wasm/main.go Enhanced panic handling and added debug parameter to execution wrapper
wasm/internal/ottlplayground.go Refactored execution logic to support debugging mode and multiple configurations
internal/executor.go Introduced new executor architecture with Observable, Debugger, and metadata management
internal/consumer.go Created new consumer abstraction for processor interaction
internal/config.go Implemented multiple configuration parsing with YAML key ordering
internal/transformprocessor_executor.go Reorganized transform processor implementation with debugger support
internal/transformprocessor_debugger.go Added statement-by-statement debugging for transform processor
internal/filterprocessor_executor.go Updated filter processor to use new executor pattern
internal/result.go Created unified result structure with timing and debug metadata

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@edmocosta edmocosta changed the title [WIP] Add transform processor debugger, multiple config support, and major refactoring Add transform processor debugger, multiple config support, and major refactoring Jan 9, 2026
@edmocosta edmocosta force-pushed the the-big-debugger-refactoring branch from 6e5ac16 to ab71d4f Compare January 9, 2026 14:48
@edmocosta edmocosta marked this pull request as ready for review January 12, 2026 10:02
@edmocosta edmocosta merged commit cfb3e6a into elastic:main Jan 12, 2026
2 checks passed
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.

1 participant