Skip to content

fix(logs): tag skipped conversions as savings:skip(reason) - #38

Open
diegosouzapw wants to merge 1 commit into
mainfrom
fix/port-pr-119-savings-skip-log
Open

fix(logs): tag skipped conversions as savings:skip(reason)#38
diegosouzapw wants to merge 1 commit into
mainfrom
fix/port-pr-119-savings-skip-log

Conversation

@diegosouzapw

Copy link
Copy Markdown
Owner

Tags a non-converted request's skip reason as savings:skip(<reason>) in the console request line (was a bare reason word), so skip reasons are greppable in omniglyph stdout and wrangler tail. Extracted to a pure skipReasonTag helper shared by the Node and Worker hosts.

  • src/log-tags.ts — new pure helper (unit-tested in tests/log-tags.test.ts)
  • src/node.ts, src/worker.ts — use the helper in the request log line
  • Structured telemetry (passthroughReasons in the JSONL event) is unchanged; this only affects the human console line.

Full suite 1096/1096; typecheck/lint/build clean.

…uest line

The console request line printed a bare reason word when a request was not
converted; tag it as savings:skip(<reason>) so skip reasons are greppable in
omniglyph stdout and wrangler tail. Extracted to a pure skipReasonTag helper
shared by the Node and Worker hosts (unit-tested).

Co-authored-by: teamchong <25894545+teamchong@users.noreply.github.com>
Inspired-by: teamchong/pxpipe#119
@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

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