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
Graph
Reset zoom Hide graph Show graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Members list
Remove all traces and spans.
Remove all traces and spans.
Attributes
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
Return all spans recorded under the given trace, in insertion order.
Return all spans recorded under the given trace, in insertion order.
Attributes
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
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
Append a span to the trace it belongs to.
Append a span to the trace it belongs to.
Attributes
Persist or overwrite a trace record.
Persist or overwrite a trace record.
Attributes