org.llm4s.trace.store
Members list
Type members
Classlikes
Thread-safe, in-process TraceStore[Id] backed by immutable maps.
Thread-safe, in-process TraceStore[Id] backed by immutable maps.
All operations are synchronous and never fail (F = cats.Id). Intended for testing and single-process observability. All state is lost when the JVM exits. Use InMemoryTraceStore() to construct.
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
InMemoryTraceStore.type
A single page of traces returned by TraceStore.queryTraces.
A single page of traces returned by TraceStore.queryTraces.
Value parameters
- nextCursor
-
opaque token to pass as
TraceQuery.cursorfor the next page;Noneif this is the last page - traces
-
traces on this page, sorted by start time ascending
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Filter and pagination parameters for TraceStore.queryTraces.
Filter and pagination parameters for TraceStore.queryTraces.
All filters are optional and combined with AND semantics. Use the companion object smart constructors for the common single-filter cases.
Value parameters
- cursor
-
opaque pagination token from the previous
TracePage - limit
-
maximum number of traces to return (default 50)
- metadata
-
key/value pairs that must all be present in the trace metadata
- startTimeFrom
-
inclusive lower bound on trace start time
- startTimeTo
-
inclusive upper bound on trace start time
- status
-
exact status match
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TraceQuery.type
Pluggable backend for storing traces and their spans.
Pluggable backend for storing traces and their spans.
The effect type F[_] abstracts over the execution model:
- InMemoryTraceStore uses
cats.Id— synchronous, never fails. - Future backends (Postgres, Redis, …) can use
IO,Future, or any effect that natively carries failure, without changing call sites.
Implementations must be thread-safe.
Type parameters
- F
-
effect in which all operations are expressed; no typeclass bound is imposed — each implementation declares its own semantics (synchronous, async, etc.)
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class InMemoryTraceStore