Skip to content

feat: generalize context omission to json - #71

Merged
secDre4mer merged 1 commit into
masterfrom
feat/generalize-omit
Oct 1, 2026
Merged

secDre4mer merged 1 commit into
masterfrom
feat/generalize-omit

Conversation

@secDre4mer

Copy link
Copy Markdown
Contributor

Instead of having omitincontext as textlog modifier, create its own struct tag to have it available for JSON as well.

@secDre4mer
secDre4mer requested review from gremat and a balanced review from Copilot September 29, 2026 10:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The exported callback change breaks downstream source compatibility and lacks direct regression coverage.

Review effort: Balanced
Findings: 1 High severity · 1 Low severity

Open (2)
What changed in this PR

Generalizes context omission metadata so it can be shared beyond text-log modifiers.

Changes:

  • Adds context:"omit" tags to verbose registry fields.
  • Passes struct metadata to omission callbacks.
  • Centralizes contextual text-log omission logic.
File Description
thorlog/​v3/​registry.go Adds context omission tags.
thorlog/​v3/​event.go Introduces reusable context omission handling.
textlog.go Changes the formatter omission callback API.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread textlog.go
Comment thread textlog.go
Comment thread thorlog/v3/event.go Outdated
Comment thread thorlog/v3/event.go Outdated
Instead of having omitincontext as textlog modifier,
create its own struct tag to have it available for JSON as well.
@secDre4mer
secDre4mer merged commit 41b6614 into master Oct 1, 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.

3 participants