-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Motivation
Users want span-based performance visibility into Nix operations — which derivations are slow, substituter hit/miss rates, evaluation time, failure context — exportable to standard observability backends (Honeycomb, Tempo, Jaeger, etc.).
Why Determinate Nix is well-positioned here
Determinate Nix already ships json-log-path (introduced in 3.3.1), which tees the internal-json activity stream to a file or Unix socket. This is the key building block for a log-to-trace bridge. No other Nix distribution has this.
A nix-trace wrapper could:
- Run
nixwithjson-log-pathpointed at a per-invocation socket - Parse the activity stream (start/stop records → spans)
- Export via OTLP to
OTEL_EXPORTER_OTLP_ENDPOINT
Request
- Ship a
nix-tracewrapper (or integrate trace export intodeterminate-nixd) that emits OTLP spans for build invocations - Alternatively, stabilize and expand the
json-log-pathevent coverage so the community can build reliable bridges on top
Upstream issue
Filed in NixOS/nix for native OTEL support: NixOS/nix#15316
Filed on behalf of @schickling by Claude
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels