FileTracingBackend

org.llm4s.trace.FileTracingBackend
final class FileTracingBackend extends TracingBackend

Registers the file mode for TracingMode.Named("file") (TRACING_MODE=file, #2948): every trace written to a local file as OTLP JSON Lines by OpenTelemetryTracing.toFiles, with no tracing service.

Declared in this module's META-INF/services/org.llm4s.trace.spi.TracingBackend beside OpenTelemetryTracingBackend. A class rather than an object because java.util.ServiceLoader instantiates it through a public no-arg constructor.

Attributes

Source
FileTracingBackend.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Builds the tracing from settings.extras, the llm4s.tracing.file block this module's reference.conf binds to LLM4S_TRACE_DIR, OTEL_SERVICE_NAME and OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT. A directory that cannot be created, is not a directory or is not writable is a Left.

Builds the tracing from settings.extras, the llm4s.tracing.file block this module's reference.conf binds to LLM4S_TRACE_DIR, OTEL_SERVICE_NAME and OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT. A directory that cannot be created, is not a directory or is not writable is a Left.

Attributes

Source
FileTracingBackend.scala

Inherited methods

Other names that select this backend, matched case-insensitively like mode: llm4s-observability-otel answers to otel as well as opentelemetry. Core knows no alias of its own.

Other names that select this backend, matched case-insensitively like mode: llm4s-observability-otel answers to otel as well as opentelemetry. Core knows no alias of its own.

An alias selects the backend and nothing else: Llm4sConfig.tracing replaces it with mode, so settings.mode is this backend's mode and settings.extras its own llm4s.tracing.<mode> block whichever name the operator wrote. A name another registered backend also answers to is an error when it is selected (TracingBackends.find), so keep an alias as specific as the mode.

Attributes

Inherited from:
TracingBackend
Source
TracingBackend.scala

Concrete fields

The mode this backend serves. A backend outside core uses TracingMode.Named; matching is by TracingMode.name, case-insensitively.

The mode this backend serves. A backend outside core uses TracingMode.Named; matching is by TracingMode.name, case-insensitively.

Attributes

Source
FileTracingBackend.scala