iii-observability
यह क्या करती है
यह स्किल iii सिस्टम में OpenTelemetry आधारित tracing, logs और metrics जोड़ती है, और संग्रहित telemetry खोजने देती है। यह उन डेवलपरों के लिए है जिन्हें देखना है कि उनका सिस्टम क्या कर रहा है और समस्याओं पर alert चाहिए।
कब इस्तेमाल करें
- ✓जब आप किसी अनुरोध को कई workers से गुज़रते हुए trace करना चाहते हों।
- ✓जब आपको engine से हाल के logs या traces खोजने हों।
- ✓जब आपको alert या सिस्टम व्यवहार का नमूना दृश्य चाहिए।
Skill का लिंक
https://github.com/iii-hq/iii/blob/main/engine/src/workers/observability/skills/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे iii engine के लिए tracing चालू कीजिए और मुझे हाल के सबसे धीमे अनुरोध दिखाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
worker engine के अपने functions के ज़रिए traces, logs और metrics इकट्ठा करता है। वह उन्हें एक OpenTelemetry collector को भेज सकता है, और तेज़ प्रश्नों के लिए एक छोटा in-memory इतिहास रख सकता है। हर नया log एक function भी trigger कर सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
क्या यह डिफ़ॉल्ट रूप से चालू है?
हाँ। यह डिफ़ॉल्ट रूप से चालू है, और कॉन्फ़िगरेशन में बंद किया जा सकता है।
डेटा कहाँ भेजा जा सकता है?
gRPC या HTTP पर OpenTelemetry collector को, या उसे memory में रखकर।
क्या खोजने के लिए memory exporter चाहिए?
हाँ। सहेजे गए logs और traces खोजने के लिए memory या both exporter विकल्प चाहिए।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 19k
- रैंकिंग में स्थान
- #10488
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
iii-sandbox
19kआपके एजेंट को अविश्वसनीय या AI से बने कोड को एक अस्थायी, अलग-थलग virtual machine के भीतर सुरक्षित रूप से चलाने में मदद करती है, और काम खत्म होने पर उसे हटा देती है।
configuration
19kआपके एजेंट को नामित कॉन्फ़िगरेशन मानों की एक साझा रजिस्ट्री सेट करने देती है, जिसे schema से जाँचा जाता है, ताकि workers बदलावों को पढ़ सकें और उन पर प्रतिक्रिया दे सकें।
iii
19kआपके एजेंट को iii workers कैसे काम करते हैं यह सिखाती है, ताकि वह पहले मौजूदा चीज़ें जाँचकर, फिर worker बनाकर कोई क्षमता जोड़ सके।
iii-stream
19kलाइव डेटा फ़ीड के लिए iii-stream worker समझाती है। यह deprecated है और आने वाले release में हटा दिया जाएगा, इसलिए इससे हटने की योजना बनाएँ।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।