Repository navigation
feat(live): show every replica's traffic in the live log view - #1341
Draft
SantiagoDePolonia wants to merge 3 commits into
Draft
SantiagoDePolonia wants to merge 3 commits into
SantiagoDePolonia wants to merge 3 commits into
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This branch was successfully deployed
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.
Description
writer_id,written_at) onaudit_logsandusage, or two fields on MongoDB, and a partial index onwritten_at. PostgreSQL builds the indexCONCURRENTLYin the background.LOGGING_FLUSH_INTERVAL/USAGE_FLUSH_INTERVAL, 5s by default, or sooner at 100 buffered entries) plus up to one 2s poll. That is about 7s at most.audit.flushedandusage.flushed, the persisted, completed entry with status, duration, model, provider, attempts, usage and cost. There are no in-flight,audit.started/updatedor per-chunk stream events. Bodies are left out of the event and load from the database when the entry is expanded. At most 200 audit and 200 usage entries are streamed per poll, newest first.main.Tests: new store tests for
RecentWrites/EntriesByID/LogEntriesByID, the schema migration and the stamping, run on SQLite, PostgreSQL and MongoDB. Feed tests cover polling only while subscribed, exactly-once publishing, late-visible batches, the start window, idle and restart, retry, and the per-poll cap. A two-replica test on one store runs on all three backends. Dashboard ordering tests were added.make test-racepassed with PostgreSQL and MongoDB, and the perf guard, lint andnpm test/npm run checkpassed.