FileTracingConfig

org.llm4s.llmconnect.config.FileTracingConfig
See theFileTracingConfig companion object
final case class FileTracingConfig

Settings for the file tracing mode (TRACING_MODE=file, #2948): every trace written to a local file as OTLP JSON Lines, with no tracing service.

Read from the llm4s.tracing.file block, which this module's reference.conf binds to LLM4S_TRACE_DIR, OTEL_SERVICE_NAME and OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT; with TRACING_MODE=file that block reaches the backend as TracingSettings.extras (FileTracingConfig.fromExtras). In code:

OpenTelemetryTracing.toFiles(FileTracingConfig(Paths.get("traces")).withCaptureContent(true))

Value parameters

captureContent

record message content - prompts, completions, an agent's query, tool input and output - redacted, as gen_ai.input.messages / gen_ai.output.messages. Off by default, since the files sit on disk in plain text; turn it on to see what a run actually said

dir

the trace directory, created on demand: each placed trace is appended to <dir>/<trace-id>.jsonl, every unplaced event to one <dir>/unplaced-<start>-<id>.jsonl per tracing instance; ./llm4s-traces by default

serviceName

service.name on every span's resource; "llm4s-agent" by default

Attributes

Companion
object
Source
FileTracingConfig.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Records message content, redacted, on the spans (off by default).

Records message content, redacted, on the spans (off by default).

Attributes

Source
FileTracingConfig.scala

Sets the trace directory.

Sets the trace directory.

Attributes

Source
FileTracingConfig.scala

Sets service.name on every span's resource.

Sets service.name on every span's resource.

Attributes

Source
FileTracingConfig.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product