Repository navigation
feat(telemetry): report object-storage bytes per worker attempt (D148) - #535
Merged
Merged
Conversation
fazpu
force-pushed
the
feat/stage-class-worker
branch
from
November 6, 2026 17:27
fdde26c to
0936e16
Compare
fazpu
added a commit
that referenced
this pull request
Nov 6, 2026
… D146 Address Codex round 1 minors on #535 and renumber after the library-seams decision moved to D147. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
fazpu
force-pushed
the
feat/egress-metering
branch
from
November 6, 2026 17:30
62001d3 to
ad521fc
Compare
Member
Author
Codex review round 1 (gpt-6.1-sol, max)VERDICT: APPROVE No blocker or major findings in
The Validation passed: 10 focused tests, lint, formatting, type checks, all five import contracts, and in-memory probes covering nine outcome paths and four concurrent attempt threads. No Postgres used; checkout unchanged. Dispositions (ad521fc)
|
fazpu
force-pushed
the
feat/stage-class-worker
branch
2 times, most recently
from
November 6, 2026 18:26
80b1f30 to
f3f1a32
Compare
fazpu
added a commit
that referenced
this pull request
Nov 6, 2026
… D146 Address Codex round 1 minors on #535 and renumber after the library-seams decision moved to D147. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
fazpu
force-pushed
the
feat/egress-metering
branch
from
November 6, 2026 18:27
ad521fc to
ce13ad8
Compare
fazpu
force-pushed
the
feat/stage-class-worker
branch
from
November 6, 2026 21:08
f3f1a32 to
7ff63bb
Compare
The S3 object-store adapter adds every object it reads and every write it sends to a per-task counter that Worker.run_claimed opens around each claimed attempt; the attempt's worker.run event carries object_bytes_read and object_bytes_written, so storage egress is summed per stage from existing telemetry. No new store or exporter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
… D147 Renumber the egress decision to D147 after the stack rebase and prove the worker.run event reports the bytes a handler read and wrote through the S3 store. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
… D146 Address Codex round 1 minors on #535 and renumber after the library-seams decision moved to D147. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
fazpu
force-pushed
the
feat/egress-metering
branch
from
November 6, 2026 21:27
ce13ad8 to
3eb229f
Compare
fazpu
marked this pull request as ready for review
November 6, 2026 21:27
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relaunch plan phase 2 item (f): egress byte metering per stage (UMC
design/plan/relaunch-shared-runtime.mdphase 2f). Artifact compression stays deferred and is not built. Builds on #529 and #533 (merged).What changes
rememberstack.core.object_transfer: a per-task byte counter in aContextVar(object_transfer_scope(),record_object_transfer(),current_object_transfer()).MinIOObjectStore(the S3 adapter, i.e. the networked store) records every object it reads and every write it sends (a put refused because the key exists still uploaded its body, so it counts). The local-filesystem adapter is not counted: no network transfer.Worker.run_claimedopens the scope around each claimed attempt;worker.runevents built inside it carryobject_bytes_readandobject_bytes_written. That is the existing metrics path (the JSON-line worker event, already per stage); per-stage egress is a sum over it. No new table, store or exporter.Tests
test_minio_store.py: reads and attempted writes add to the open scope; nothing is kept outside a scope.test_telemetry.py: a handler that reads 5 bytes and writes 3 through the S3 store produces aworker.runevent withobject_bytes_read=5,object_bytes_written=3.Rule 4 (D56)
No ingestion keyed input or reuse identity changes; telemetry only.
🤖 Generated with Claude Code
https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm