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>.jsonlper tracing instance;./llm4s-tracesby default - serviceName
-
service.nameon every span's resource;"llm4s-agent"by default
Attributes
- Companion
- object
- Source
- FileTracingConfig.scala
- Graph
-
- Supertypes
