org.llm4s.trace.store.TraceStore
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
Source
TraceStore.scala
Graph
Reset zoom Hide graph Show graph
Supertypes
trait Matchable
class Any
Known subtypes
Members list
Remove all traces and spans.
Remove the trace and all its spans atomically.
Remove the trace and all its spans atomically.
Attributes
Returns
true if the trace existed and was removed, false if not found
Source
TraceStore.scala
Return all spans recorded under the given trace, in insertion order.
Return all spans recorded under the given trace, in insertion order.
Attributes
Source
TraceStore.scala
Look up a trace by its ID, or None if not found.
Look up a trace by its ID, or None if not found.
Attributes
Source
TraceStore.scala
Return a page of traces matching query, sorted by start time ascending.
Return a page of traces matching query, sorted by start time ascending.
Value parameters
query
filters, cursor and page size
Attributes
Source
TraceStore.scala
Append a span to the trace it belongs to.
Persist or overwrite a trace record.