instrument-with-sazabi
Skill này làm gì
Skill này thiết lập ứng dụng để log và trace được gửi đến Sazabi. Dành cho lập trình viên muốn dịch vụ của họ hiển thị trong Sazabi mà không đưa bí mật vào kho code.
Khi nào nên dùng
- ✓Khi bạn muốn kết nối một ứng dụng hoặc dịch vụ với Sazabi.
- ✓Khi bạn muốn thêm log hoặc trace OpenTelemetry vào một dự án.
- ✓Khi Sazabi không hiển thị dữ liệu cho một dịch vụ và bạn cần tìm nguyên nhân.
Liên kết skill
https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/instrument-with-sazabi/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kết nối Node API của tôi với Sazabi bằng OpenTelemetry và xác nhận log đầu tiên đã đến.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lấy địa chỉ tiếp nhận từ Sazabi và lưu vào biến môi trường, không lưu trong code. Nó cài bộ SDK OpenTelemetry chính thức cho ngôn ngữ của ứng dụng và xác nhận bản ghi đầu tiên đã đến trước khi coi việc thiết lập là xong.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Địa chỉ Sazabi có nằm trong code của tôi không?
Không. Skill lưu nó trong biến môi trường hoặc kho bí mật, không phải trong code được commit.
Nó dùng SDK nào?
Nó dùng SDK OpenTelemetry chính thức cho ngôn ngữ mà ứng dụng của bạn chạy.
Làm sao biết nó hoạt động?
Skill kiểm tra bản ghi đầu tiên đã đến Sazabi trước khi coi việc thiết lập là hoàn tất.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10843
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
decide
16kHướng dẫn bạn từng quyết định về thiết kế hoặc code, mỗi lần một việc, có lựa chọn rõ ràng và khuyến nghị. Ghi lại mọi câu trả lời và đưa ra bản tóm tắt cuối.
mobile-demo-film
16kBiến video quay màn hình điện thoại thành video demo gọn gàng, có thẻ tiêu đề, khung điện thoại và thẻ kết thúc. Hợp với demo tính năng và clip ra mắt.
redesign
16kXem xét một thành phần giao diện và đề xuất cách sửa cụ thể về khoảng cách, độ tương phản, thứ bậc và bố cục. Cũng có thể áp dụng thay đổi.
superset-settings
16kCho phép agent xem và thay đổi cài đặt ứng dụng desktop Paradev, như giao diện, phông chữ và thông báo, từ dòng lệnh.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.