feat: add SlateDB trace history example - #501
Merged
alongubkin merged 14 commits intoAug 27, 2026
Merged
Conversation
Greptile SummaryThe PR adds a portable SlateDB-backed trace-history example with durable queue-based ingestion, indexed readers, failure recording, and local end-to-end coverage. It also updates local Storage to report unsupported object attributes using the standard object-store error.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| examples/slatedb-trace-store/src/service.rs | Implements durable ingestion and bounded queue retry behavior; the previously reported writer lifecycle and finalization-health behaviors are either corrected or explicitly documented as intentional. |
| examples/slatedb-trace-store/src/store.rs | Implements SlateDB trace persistence, transactional secondary indexes, and paginated reads without an accepted blocking finding. |
| examples/slatedb-trace-store/src/keys.rs | Defines primary, secondary-index, timestamp, and pagination-cursor encodings. |
| examples/slatedb-trace-store/alien.ts | Declares the storage, queue, replicated API, and singleton writer resources for the portable example. |
| crates/alien-bindings/src/providers/storage/local.rs | Returns the standard NotSupported object-store error for unsupported local object attributes, enabling SlateDB fallback behavior. |
| examples/slatedb-trace-store/tests/trace-store.test.ts | Exercises the deployed local ingestion and trace-query workflow. |
Sequence Diagram
sequenceDiagram
participant Client
participant API
participant Storage
participant Queue
participant Writer
participant SlateDB
Client->>API: POST /v1/traces
API->>Storage: Store canonical staged trace
API->>Queue: Enqueue ingestion pointer
API-->>Client: 202 Accepted
Writer->>Queue: Receive pointer
Writer->>Storage: Read and validate staged trace
Writer->>SlateDB: Commit trace and indexes
Writer->>Queue: Acknowledge delivery
Writer->>Storage: Delete staging object
Client->>API: GET trace or indexed page
API->>SlateDB: Read latest visible state
API-->>Client: Trace response
Reviews (14): Last reviewed commit: "fix: make rejection records idempotent" | Re-trigger Greptile
alongubkin
deleted the
alon/alien-584-add-slatedb-ai-trace-history-example
branch
August 27, 2026 01:22
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.
Summary
Verification
cargo nextest run -p slatedb-trace-storecargo nextest run -p alien-bindings local_storage_rejects_object_attributes_without_writing_the_payloadcargo clippy -p slatedb-trace-store --all-targets --locked --no-deps -- -D warningspnpm exec tsc --noEmitpnpm testLinear: ALIEN-584