본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)19k · #10488

iii-observability

하는 일

이 스킬은 iii 시스템에 OpenTelemetry 기반 추적, 로그, 지표를 추가하고, 저장된 원격 측정 데이터를 검색할 수 있게 합니다. 시스템이 무엇을 하는지 보고 문제에 대해 알림을 받아야 하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓요청이 여러 워커를 거쳐 가는 과정을 추적하고 싶을 때.
  • ✓엔진의 최근 로그나 추적을 검색해야 할 때.
  • ✓알림이나 시스템 동작의 샘플링된 보기를 원하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/iii-hq/iii/blob/main/engine/src/workers/observability/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“iii 엔진의 추적을 켜고, 최근 요청 중 가장 느린 것들을 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

워커는 엔진 자체 함수를 통해 추적, 로그, 지표를 수집합니다. 이를 OpenTelemetry 수집기로 보낼 수 있고, 빠른 조회를 위해 짧은 메모리 내 기록을 유지할 수도 있습니다. 새 로그마다 함수를 트리거할 수도 있습니다.

기술 내용 (원본 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::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
자주 묻는 질문

기본으로 켜져 있나요?

예. 기본으로 켜져 있으며 설정에서 끌 수 있습니다.

데이터는 어디로 보낼 수 있나요?

gRPC나 HTTP로 OpenTelemetry 수집기에 보내거나, 메모리에 보관할 수 있습니다.

검색하려면 메모리 내보내기가 필요한가요?

예. 저장된 로그와 추적을 검색하려면 메모리 또는 둘 다 내보내기 옵션이 필요합니다.

상세 정보

작성자의 원본 설명

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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬