Skip to main content

Export run logs via OTLP to your own observability backend

Run logs are the first thing teams look at when a run fails, and today they live inside Spacelift. You can read them in the UI or pull them one run at a time, and they age out on our retention schedule. Teams that already send everything else to Grafana Loki, Datadog, Splunk, Elastic, or their SIEM want run logs to land there automatically, next to the rest of their telemetry.

This was the original ask behind run observability: logs first, then traces and metrics. It's also the piece compliance teams care about most, since they need the plan and apply output kept outside Spacelift and tied back to who did what.

What this should include:

  • The same endpoint config as the OTLP trace and metrics export requests (account-level OTLP/HTTP endpoint, headers and auth, optional per-stack or per-space overrides, batching and retry), so one destination can take all three signals.
  • Per-phase run logs (init, plan, apply, and hooks) sent as OTLP log records, with run, stack, space, worker pool, and phase as attributes.
  • trace_id and span_id on every record, so each log line lines up with its span in the exported run trace.
  • Follow OpenTelemetry semantic conventions for attribute names. Respect secret masking: anything masked in the UI stays masked in the export.
  • Self-hosted parity on day one.
  • Share the OTLP envelope with the audit and SIEM export work, so audit events and run logs can be correlated as one stream.

Related:

Workaround
Problem
Status: ⬆️ Gathering votes

Log in to comment and vote

No comments yet

Be the first to share your thoughts.