TracingBackends

org.llm4s.trace.spi.TracingBackends
See theTracingBackends companion object
final class TracingBackends

The tracing backends Tracing.fromSettings can dispatch to, keyed by mode.

Usually obtained from TracingBackends.discover, which reads META-INF/services/org.llm4s.trace.spi.TracingBackend entries off the classpath. When two backends claim the same mode the later registration wins, so an explicit withBackend replaces a discovered one.

Value parameters

discovered

whether this set came from classpath discovery rather than explicit registration.

failures

one line per service entry that could not be loaded, for diagnosing a missing backend; empty when discovery was clean or did not run.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def find(mode: TracingMode): Option[TracingBackend]

The backend registered for mode, matched on TracingMode.name case-insensitively.

The backend registered for mode, matched on TracingMode.name case-insensitively.

Attributes

def modes: Vector[TracingMode]

The modes a backend is registered for, in registration order.

The modes a backend is registered for, in registration order.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

This set plus backend, which replaces any registered backend for the same mode.

This set plus backend, which replaces any registered backend for the same mode.

Attributes

Concrete fields

val discovered: Boolean
val failures: Vector[String]