skip to content
$worker

iii-observability

v0.12.0

OpenTelemetry-based traces, metrics, logs, alerts, and sampling.

iiiverified
8,665 installs64 in 7d0 today
install
$iii worker add iii-observability@0.12.0

exact versions are immutable; binary and bundle artifacts are digest-pinned.

engine module
baked into the iii engine; no separate install required.

skill doc

iii-observability

index
index.md

iii-observability

OpenTelemetry-backed observability for the iii engine: distributed tracing, structured logs, metrics with rollups, alert rules, sampling configuration, and baggage propagation. Every surface is a callable engine function under engine::*, plus a single log reactive trigger that fires on every ingested log entry. The worker exposes 19 functions across 9 sub-namespaces — emit, listen, query stored telemetry, manage configuration, propagate context.

The worker is on by default (config.enabled: true). When disabled, the emit and read functions still register but become no-ops; the trigger never fires. Core config keys: service_name / service_version / service_namespace (OTel resource attributes), exporter (memory | otlp | both), endpoint (OTLP collector URL, default http://localhost:4317), sampling_ratio (0.01.0, default 1.0), memory_max_spans (default 1000), and per-pillar toggles (metrics_enabled, logs_enabled) plus retention/limit knobs (metrics_retention_seconds, metrics_max_count, logs_max_count, logs_retention_seconds, logs_console_output, logs_sampling_ratio). Most fields can be overridden via env vars (OTEL_*). Alert rules and the advanced sampling block are documented inline alongside the relevant skills.

  • Emit and listen (engine::log::*, log trigger) — five severity-level emit functions and a reactive trigger that fires on every ingested log.
  • Query stored telemetry (engine::logs::*, engine::traces::*, engine::metrics::*, engine::rollups::*) — list/tree/clear for the in-memory log + span store, list metrics with optional time bucketing, list metric rollup aggregations.
  • Inspect configuration (engine::sampling::*, engine::health::*, engine::alerts::*) — view the active sampling rules, check engine health, list and re-evaluate alert rules.
  • Propagate context (engine::baggage::*) — read and write OpenTelemetry baggage keys for cross-call context (note: writes don't propagate back to the caller — see the file).

How-tos

engine::log::* — emit log entries

log triggers

  • React to ingested log entries — register a handler bound to the log trigger type to fire on every (or filtered-by-level) log emitted via engine::log::* or stored via the OTel log pipeline.

engine::logs::* and engine::traces::* — query stored telemetry

engine::metrics::* and engine::rollups::* — metrics inspection

  • engine::metrics::list — list metrics with aggregated stats; surfaces engine counters, SDK metrics, and optional time-bucketed values.
  • engine::rollups::list — list metric rollup aggregations across 1-minute, 5-minute, and 1-hour windows.

engine::baggage::* — context propagation

engine::sampling::*, engine::health::*, engine::alerts::* — operational inspection