fix(logging): restore session traces and accurate usage delivery - #616
Merged
Merged
Conversation
Aayam Bansal (aayambansal)
requested a review
from Ishaan Gangwani (ishaan1124)
as a code owner
September 16, 2026 13:46
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
What does this PR do, and why?
The CLI no longer had a trace uploader, while the privacy page and landing FAQs described conflicting defaults. Restore authenticated session trace delivery and preserve provider-observed usage through a durable queue and verified server acknowledgements.
Linked issue
No linked issue.
How did you verify it?
On main
f46e0646, the following passed:The final logging-specific rerun passes all 29 tests. It exercises real SDK streaming, interrupted output, exact numeric values, redaction, bounded payloads, all supported routes, opt-outs, account changes, concurrent capture, malformed/partial/lost receipts, replay deduplication, and rejected-record isolation. Three rendered settings tests exercise a loopback HTTP fixture, including failed preference writes and resolved delivery errors.
An actual emitted batch was also submitted to the real Atlas ingest implementation using an isolated test database. It preserved the numeric usage/cost and trace content, and replay produced no duplicate events. No production traces were sent.
All GitHub checks passed on
5c7a4fd0: backend tests, frontend tests, typecheck, formatting, web build, gitleaks, compatibility, and the native Harbor trial.Checklist
bun run checkprocess was rerun after rebasing (validation used the affected suites)bun run --cwd frontend/workspace buildsucceeds./tooling/repo/generate.tswas run and the SDK output is committed