instrument-with-sazabi
できること
このスキルは、アプリのログとトレースがSazabiに届くように設定します。リポジトリに秘密情報を入れずに、サービスをSazabiで見えるようにしたい開発者向けです。
使う場面
- ✓アプリやサービスをSazabiに接続したいとき。
- ✓プロジェクトにOpenTelemetryのログやトレースを追加したいとき。
- ✓Sazabiにサービスのデータが表示されず、その原因を調べる必要があるとき。
スキルのリンク
https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/instrument-with-sazabi/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のNode APIをOpenTelemetryでSazabiに接続し、最初のログが届くことを確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、Sazabiから取り込み用のアドレスを取得し、コードではなく環境変数に保存します。アプリの言語向けの公式のOpenTelemetry SDKを設定し、最初のレコードが届いたことを確認してから、作業を完了とします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Data in, proven
Sazabi can only answer questions about telemetry it receives. The job is to make the app export logs and traces over OpenTelemetry to the user's Sazabi project, with no secrets in the repo, and to show the first records arriving.
0. How the tools work
The Sazabi MCP server lists only two tools, search and execute. Browse
Sazabi's operations with search and namespace: "sazabi" (an empty query
without a namespace lists connected connectors, not Sazabi operations). Before
calling one, repeat search with namespace: "sazabi", the hit's full name as
the query, and includeInputSchema: true to load its arguments. Then run it
with execute as { name, arguments }, the name copied from the hit (for
example sazabi/logs.ask).
1. Get an intake URL
Run sazabi/logSources.list first; an OpenTelemetry source may already exist
for this project. If not, sazabi/logSources.create in manual mode for an
OpenTelemetry source returns the intake endpoint to point the sender at. The
intake URL embeds a write-only public key, so it needs no auth header, but it
still belongs in an environment variable or secret store, not in committed
code. Metrics go to the separate OpenTelemetry Metrics source, which has its
own intake path.
2. Wire the SDK
Use the official OpenTelemetry SDK for the runtime and initialize it before the app handles requests:
- Node.js:
@opentelemetry/sdk-node,@opentelemetry/auto-instrumentations-node,@opentelemetry/exporter-trace-otlp-proto,@opentelemetry/exporter-logs-otlp-protoand@opentelemetry/sdk-logs. Auto-instrumentation exports traces but not logs, so add aBatchLogRecordProcessorwith anOTLPLogExporter, and bridge the app's existing logger (pino, winston) instead of replacing it. - Python:
opentelemetry-distroandopentelemetry-exporter-otlp-proto-http, thenopentelemetry-bootstrap -a install, and enable the logging handler. - Other runtimes: the standard OTLP/HTTP exporter for that SDK.
Configure through the standard environment variables, set in the process that runs the app (not only at build time or in CI):
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT=<intake URL>
OTEL_SERVICE_NAME=<service name>
Set OTEL_SERVICE_NAME and deployment.environment so every record says
which service and environment it came from. Add the variable names to
.env.example or the deploy config, with the value left to the user.
3. Prove it
Run the app (or deploy it), make a request, then ask Sazabi with
sazabi/logs.ask: "how many records from service <name> in the last 15
minutes". Records usually show up within a minute or two. If none arrive,
check that the variables are set in the running process, that the URL has its
https:// scheme, and the app's output for SDK initialization errors.
4. Hand off
Commit on a branch and open a pull request. Say which signals are flowing (logs, traces), which service name to search for, and which variables the user must set in each environment.
Anti-patterns
- Committing the intake URL. It is a write key; keep it in configuration.
- Traces only. Most debugging starts from log lines; export both.
- Calling it done before a record arrives. Configuration that has never delivered a record is a guess.
よくある質問
Sazabiのアドレスはコードに入りますか?
いいえ。このスキルは、コミットされたコードではなく、環境変数または秘密情報の保管場所に保存します。
どのSDKを使いますか?
アプリが動く言語に合わせた、公式のOpenTelemetry SDKを使います。
動いているかどうやってわかりますか?
設定を完了とする前に、最初のレコードがSazabiに届いたかを確認します。
詳細
作者による元の説明
Get an application's logs and traces into Sazabi with OpenTelemetry — pick the SDK for the runtime, export over OTLP/HTTP to a Sazabi intake URL kept in an environment variable, and prove data arrives before calling it done. Use when the user wants to connect an app or service to Sazabi, add OpenTelemetry, set up logging or tracing, or asks why Sazabi shows no data for a service.
repo: ParadevAI/Paradev
人気
- GitHubのスター
- 16k
- ランキング
- #10843
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
decide
16kエージェントが、設計やコードの決定を明確な選択肢と推奨を添えて一つずつ進められるよう支援し、最後に要約を示します。
mobile-demo-film
16kエージェントが、スマートフォンの画面録画を、タイトルカード、電話のフレーム、エンドカード付きの洗練されたデモ動画に変えられるよう支援します。
redesign
16kエージェントが、既存のインターフェースを見直し、余白、コントラスト、階層、レイアウトの具体的な修正案を示せるよう支援します。
superset-settings
16kエージェントが、Paradevデスクトップアプリのテーマ、フォント、通知などの設定を、コマンドラインから確認し変更できるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。