iii-observability
What it does
Adds OpenTelemetry-based tracing, logs and metrics to an iii system, and lets you search the stored telemetry. It is for developers who need to see what their system is doing and be alerted to problems.
When to use it
- βWhen you want to trace a request as it passes through several workers.
- βWhen you need to search recent logs or traces from the engine.
- βWhen you want an alert or a sampled view of system behavior.
Skill link
https://github.com/iii-hq/iii/blob/main/engine/src/workers/observability/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βTurn on tracing for my iii engine and show me the slowest recent requests.β
5 new skills a week. 1 minute to read.
How it works
The worker collects traces, logs and metrics through the engine's own functions. It can send them to an OpenTelemetry collector, and it can keep a short in-memory history for quick queries. Each new log can also trigger a function.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
iii-observability
The iii-observability worker provides 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, plus a single log reactive
trigger that fires on every ingested log entry. Functions span nine sub-namespaces β emit, query
stored telemetry, inspect configuration, and propagate context.
The worker is on by default (enabled: true). When disabled, the emit and read functions still
register but become no-ops and the trigger never fires. Core config:
service_name/service_version/service_namespace (OTel resource attributes), exporter
(memory | otlp | both), endpoint (OTLP collector URL, default http://localhost:4317),
sampling_ratio (0.0β1.0), memory_max_spans, and per-pillar toggles/limits
(metrics_enabled, logs_enabled, retention and count caps). Most fields accept OTEL_* env
overrides. The in-memory query functions (logs, traces) require the memory or both exporter.
Traces and metrics use OTLP/gRPC by default; https:// endpoints enable TLS and http:// endpoints
use cleartext. Set OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf to use OTLP/HTTP protobuf for traces
and metrics, or use OTEL_EXPORTER_OTLP_TRACES_PROTOCOL / OTEL_EXPORTER_OTLP_METRICS_PROTOCOL for
signal-specific overrides. The HTTP/protobuf path is appended automatically (/v1/traces,
/v1/metrics) when the configured endpoint is a base collector URL. Logs export over OTLP/HTTP to
/v1/logs.
Use OTEL_EXPORTER_OTLP_HEADERS for collector headers and the signal-specific
OTEL_EXPORTER_OTLP_TRACES_HEADERS, OTEL_EXPORTER_OTLP_METRICS_HEADERS, or
OTEL_EXPORTER_OTLP_LOGS_HEADERS when needed. The logs exporter reads
OTEL_EXPORTER_OTLP_LOGS_HEADERS first and falls back to OTEL_EXPORTER_OTLP_HEADERS. Keep
credentials in environment variables or a secret manager, not in config files.
When to Use
- Emit structured logs or read back stored logs/spans/metrics from inside a function instead of shelling out to a collector.
- React in real time to log entries (page on errors, archive everything) without polling.
- Inspect engine health, active sampling rules, or alert state operationally.
- Propagate OpenTelemetry baggage across calls for cross-cutting context.
Boundaries
engine::baggage::setdoes not propagate back to the caller β baggage propagation happens at the SDK/invocation level via headers.- The in-memory query functions return nothing useful unless the
memory(orboth) exporter is configured; withotlp-only the data lives in your collector. - When
logs_enabledis off the log pipeline is dormant and thelogtrigger never fires; the ingestlevelsets the minimum severity stored. - This worker observes telemetry β it is not a general event bus (
pubsub) or durable queue (queue); those are standalone Compose workers.
Functions
engine::log::info,engine::log::warn,engine::log::error,engine::log::debug,engine::log::traceβ emit a log entry at the named severity; same input shape, only the level differs.engine::logs::listβ read stored OTel logs, filtered by time, trace correlation, or severity.engine::logs::clearβ wipe the in-memory log store.engine::traces::listβ list compact trace summaries with aggregate status/counts and optional attribute projection.engine::traces::spansβ list full span records for detail/timeline consumers.engine::traces::treeβ walk a single trace as a parent/child tree.engine::traces::group_byβ aggregate stored spans by an attribute value (counts, duration, errors per group).engine::traces::clearβ wipe stored spans.engine::metrics::listβ list metrics with aggregated stats and optional time bucketing.engine::rollups::listβ list metric rollup aggregations across 1-minute, 5-minute, and 1-hour windows.engine::baggage::get,engine::baggage::get_allβ read one or all OpenTelemetry baggage keys.engine::baggage::setβ set a baggage key locally (does not propagate to the caller).engine::sampling::rulesβ list the active sampling rules.engine::health::checkβ return engine health (status, per-component breakdown, version).engine::alerts::listβ inspect configured alert rules and current state.engine::alerts::evaluateβ manually run an alert evaluation pas
FAQ
Is it turned on by default?
Yes. It is enabled by default, and it can be turned off in the configuration.
Where can the data be sent?
It can send telemetry to an OpenTelemetry collector over gRPC or HTTP, or keep it in memory.
Do I need the memory exporter to search?
Yes. Searching stored logs and traces requires the memory or both exporter option.
Details
Original description by the author
OpenTelemetry-backed tracing, structured logs, metrics with rollups, alerts, sampling, and baggage for the engine β emit and query telemetry through `engine::*` functions and react to logs with a `log` trigger.
repo: iii-hq/iii
Popularity
- GitHub stars
- 19k
- Ranking position
- #10488
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
iii-sandbox
19kHelps your agent run untrusted or AI-generated code safely inside a temporary isolated virtual machine, then discard it when finished.
configuration
19kLets your agent set up a shared registry of named configuration values, checked against a schema, so workers can read and react to changes.
iii
19kTeaches your agent how iii workers work, so it can add a capability by first checking what already exists, then building a worker.
iii-stream
19kExplains the iii-stream worker for live data feeds. It is deprecated and will be removed in an upcoming release, so plan a move off it.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.