larik v0.25.0

Guide

OpenTelemetry export

Larik can send each session's model requests, tool calls and subagents to an OpenTelemetry collector, so they show up beside the rest of your services in Grafana, Honeycomb, Jaeger or whatever you run. It is off until you give it an endpoint, in personal settings:

json
{ "telemetry": { "otlp_endpoint": "http://localhost:4318" } }

(or OpenTelemetry endpoint in /config), or, handy in CI and for larik -p, in the environment: LARIK_OTLP_ENDPOINT=http://localhost:4318, which wins over the file. If the collector needs a token, put it in the environment too, LARIK_OTLP_HEADERS="Authorization=Bearer …,k2=v2", so it never sits in a settings file, as with provider keys. Use an OTLP/HTTP endpoint: a base URL, or the full /v1/traces URL.

Metadata only. Each prompt is one trace: a larik.turn span holding a chat <model> span per request (input, output and cache tokens, cost, time to first token, context size), an execute_tool <name> span per tool call, and a larik.subagent span, nested under its task call, for each subagent, with its own requests and tools. Spans carry larik.session.id, stop reasons and error flags, and follow the gen_ai.* naming where it exists. Prompts, replies, tool input and output, file contents, paths and error messages are never exported; that is what debug traces are for, and they stay on your disk. Only personal settings can turn this on, because the collector learns about every request.

Exporting is best-effort and never slows or stops an agent: spans are batched in the background, a failed delivery is tried twice and then dropped, and the failures are logged to ~/.local/share/larik/logs/telemetry.log. Larik sends what is queued when it exits. Change the endpoint, and start a new session, to apply it. There is no OpenTelemetry SDK in the binary; Larik writes OTLP/JSON itself.

Generated from README.md · section “OpenTelemetry export”. Edit that file to change this page.