Skip to main content

Crate llmtrace_storage

Crate llmtrace_storage 

Source
Expand description

Storage abstraction layer for LLMTrace

Provides storage backends for persisting traces, metadata, and cache. The primary backend is SQLite (via sqlx), with in-memory backends for testing.

Use StorageProfile to build a complete Storage composite from a configuration profile.

Modules§

migration
Database migration management with versioned schemas.

Structs§

InMemoryCacheLayer
In-memory cache backed by DashMap with TTL expiry.
InMemoryMetadataRepository
In-memory metadata repository for testing.
InMemoryTraceRepository
In-memory trace repository for testing.
SqliteMetadataRepository
SQLite-backed metadata repository for tenants, configurations, and audit events.
SqliteTraceRepository
SQLite-backed trace repository.

Enums§

StorageProfile
Storage configuration profile.