Skip to content

Conversation

@csatib02
Copy link
Member

@csatib02 csatib02 commented Oct 26, 2025

Introduces a new dryRunModethat enables a simplified pipeline configuration for testing and debugging purposes.

  • Added dryRunMode to the collector CRD.
  • Implemented a CEL validation rule that enforces that dryRunMode can only be enabled when debug is also set.

When dryRunMode is enabled:

  • Only data-modifying components are included in the generated pipeline (e.g., transform processors, k8sattributes processor).
  • All exporters except the debug exporter are disabled.
  • Persistence options are disabled.

This feature is particularly useful for:

  • Testing new processor configurations in isolation.
  • Validating data transformations before production deployment.
  • Debugging telemetry pipelines without affecting production exporters.

Signed-off-by: Bence Csati <bence.csati@axoflow.com>
@csatib02 csatib02 requested review from OverOrion and pepov October 26, 2025 11:37
@csatib02 csatib02 self-assigned this Oct 26, 2025
@csatib02 csatib02 added the enhancement New feature or request label Oct 26, 2025
@pepov
Copy link
Member

pepov commented Oct 26, 2025

debug and debugMode can be confusing at first. why not just use debug and put all these feature behind a single flag? if it makes sense to control for example persistence separately, I would add a flag for that specifically

@csatib02
Copy link
Member Author

@pepov

Persistence is controlled by a single flag on tenant's level.

The power of debug-mode is to have a hassle free method for testing out the whole pipeline without having to worry about which components to enable/disable to have no side-effects.

The current validation layer catches all syntax errors before deploying, but runtime errors/misconfigurations such as invalid/not at all working ottl statements, might not show up at all.

@pepov
Copy link
Member

pepov commented Oct 26, 2025

Still not sure why we need both debug and debugmode flags at the same time

@csatib02
Copy link
Member Author

csatib02 commented Oct 26, 2025

Debug, essentially adds a debug exporter next to the configured ones, it also raises the log level of all components to debug.

Signed-off-by: Bence Csati <bence.csati@axoflow.com>
Signed-off-by: Bence Csati <bence.csati@axoflow.com>
Signed-off-by: Bence Csati <bence.csati@axoflow.com>
@csatib02 csatib02 changed the title feat: add debug-mode feat: add dry-run mode Oct 27, 2025
@csatib02
Copy link
Member Author

I've changed the naming from debug-mode to dry-run mode.

@csatib02 csatib02 merged commit 4c477b2 into main Oct 27, 2025
11 checks passed
@csatib02 csatib02 deleted the feat/debug-mode branch October 27, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants