Skip to content

feat: add --trace-filter flag and debugging documentation#55

Merged
ghaskins merged 1 commit intomanetu:mainfrom
ghaskins:trace-filtering
Jan 27, 2026
Merged

feat: add --trace-filter flag and debugging documentation#55
ghaskins merged 1 commit intomanetu:mainfrom
ghaskins:trace-filtering

Conversation

@ghaskins
Copy link
Copy Markdown
Contributor

Add --trace-filter CLI flag to filter OPA trace output by policy MRN pattern. When tracing is enabled, only policies matching the regex patterns produce trace output, making it easier to debug specific policies in complex policy sets.

Also adds comprehensive documentation:

  • New debugging-policies guide explaining OPA trace interpretation
  • Test suite section in testing-policies guide for mpe test decisions
  • Cross-references between related guides

Add --trace-filter CLI flag to filter OPA trace output by policy MRN
pattern. When tracing is enabled, only policies matching the regex
patterns produce trace output, making it easier to debug specific
policies in complex policy sets.

Also adds comprehensive documentation:
- New debugging-policies guide explaining OPA trace interpretation
- Test suite section in testing-policies guide for mpe test decisions
- Cross-references between related guides

Signed-off-by: Greg Haskins <greg@manetu.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 27, 2026

Codecov Report

❌ Patch coverage is 47.05882% with 18 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/core/opa/core.go 47.82% 12 Missing ⚠️
cmd/mpe/main.go 0.00% 4 Missing ⚠️
cmd/mpe/common/engine.go 71.42% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@ghaskins ghaskins merged commit 756011e into manetu:main Jan 27, 2026
15 of 16 checks passed
@ghaskins ghaskins deleted the trace-filtering branch January 27, 2026 23:03
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.

2 participants