Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)19k Β· #10488

iii-observability

Fungsinya

Menambahkan pelacakan, log, dan metrik berbasis OpenTelemetry ke sistem iii, dan memungkinkan Anda mencari telemetri yang tersimpan. Skill ini untuk pengembang yang perlu melihat apa yang dilakukan sistem mereka dan diberi peringatan saat ada masalah.

Kapan dipakai

  • βœ“Saat Anda ingin melacak satu permintaan saat melewati beberapa worker.
  • βœ“Saat Anda perlu mencari log atau jejak terbaru dari engine.
  • βœ“Saat Anda ingin peringatan atau tampilan sampel dari perilaku sistem.

Link skill

https://github.com/iii-hq/iii/blob/main/engine/src/workers/observability/skills/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/iii-hq/iii/blob/main/engine/src/workers/observability/skills/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œNyalakan pelacakan untuk engine iii saya dan tunjukkan permintaan terbaru yang paling lambat.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Worker mengumpulkan jejak, log, dan metrik melalui fungsi bawaan engine. Data bisa dikirim ke collector OpenTelemetry, atau disimpan dalam riwayat singkat di memori untuk kueri cepat. Setiap log baru juga bisa memicu sebuah fungsi.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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::set does 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 (or both) exporter is configured; with otlp-only the data lives in your collector.
  • When logs_enabled is off the log pipeline is dormant and the log trigger never fires; the ingest level sets 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
Pertanyaan umum

Apakah sudah aktif secara bawaan?

Ya. Fitur ini aktif secara bawaan dan bisa dimatikan di konfigurasi.

Ke mana data bisa dikirim?

Telemetri bisa dikirim ke collector OpenTelemetry melalui gRPC atau HTTP, atau disimpan di memori.

Apakah saya perlu exporter memori untuk mencari?

Ya. Mencari log dan jejak yang tersimpan memerlukan opsi exporter memory atau both.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
19k
Peringkat
#10488
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa