rust-observability
/rust-observability
Dodaje śledzenie i logowanie operacyjne w aplikacjach Rust: spany, filtry, redakcję danych i diagnostykę poleceń.
- Autor
- cybercoretech ↗
- Repozytorium
- cybercore-agent-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Dodaje śledzenie i logowanie operacyjne w aplikacjach Rust: spany, filtry, redakcję danych i diagnostykę poleceń.
Oryginalny opis (EN)
Tracing and operational logging for Cybercore Rust applications. Use when adding logs, spans, EnvFilter, redaction, or command-level diagnostics. Do not use println for operational output.
Jak działa
- Scope
- Safety Rules (Non-Negotiable)
- Setup
- What to Log
- Spans
- User Output
- Verification
Podgląd SKILL.md
--- name: rust-observability description: Tracing and operational logging for Cybercore Rust applications. Use when adding logs, spans, EnvFilter, redaction, or command-level diagnostics. Do not use println for operational output. metadata: version: "1" --- # Rust Observability You are a Rust observability specialist focused on Cybercore applications. ## Scope - `tracing` and `tracing-subscriber` - Levels, spans, and `RUST_LOG` - Redaction - What the user sees vs what the log sees ## Safety Rules (Non-Negotiable) **STOP AND REPORT before any of these:** - Logging secrets, tokens, session cookies, or full personal data - Leaving `println!` / `eprintln!` as the operational log of a long-running app - A default log level of `trace` or `debug` in release - Shipping a log sink that uploads data off-box without explicit approval ## Setup - Initialize one subscriber in `main`, before work starts. - Default filter is `info`. `RUST_LOG` overrides it. - Use `EnvFilter` so crates can be tuned independently (`app=debug,hyper=warn`). - Libraries emit `tracing` events. They do not install a subscriber. ## What to Log - Startup: version, config path, data path. Redact values that came from secrets. - Each command or request: start, outcome, and duration at `info`. - Failures: `error` with context (`with_context` / span fields), not a bare string. - Expected user mistakes (bad flag, missing file): user-facing text, log at `warn` or `info`, exit non-zero. - Panics and invariant bugs: `error`. Do not catch them to hide the bug. ## Spans - A span wraps one command, request, or job. Fields are ids and names, not payloads. - Do not put full file contents or SQL parameter values that may contain secrets into span fields. ## User Output - Success text is short and stable. - Verbose detail is `-v` or the log, not the default stdout. - Stdout stays machine-readable when the command is meant to be piped. Logs go to stderr. ## Verification - Subscriber is installed once - `RUST_LOG` changes verbosity without a code change - No secrets in log statements or span fields - Operational `println!` is gone from the paths you touched - A failing command still prints an actionable message
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · cybercoretech/cybercore-agent-skills | 90 | MIT |
| full-stack-skills/rust-skills | 100 | Apache-2.0 |
| rewrite-rs/skills | 100 | BSD-3-Clause |
Migawka bazy z 13.11.2026 · wersja paczki 09b0b9718dcc (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100rs-observability
Dodaje logowanie, śledzenie i metryki do kodu Rust, dba o dane wrażliwe w logach i pomaga diagnozować zachowanie na produkcji. - 100rust-tracing-practices
Opisuje praktyki tracingu i instrumentacji w Rust w HASH: dodawanie spanów, zdarzeń i atrybutu #[tracing::instrument]. - 100rust-app-architecture
Układa strukturę aplikacji Rust dla Cybercore: podział binarki i biblioteki, warstwy CLI, konfiguracji i domeny oraz granice crate'ów. - 90rust-persistence
Obsługuje trwałość w aplikacjach Rust na plikach i SQLite: zapisy atomowe, katalogi danych, konfigurację bazy i migracje. - 100observability-and-logging
Konfiguruje obserwowalność backendów FastAPI: logi strukturalne w structlog, redakcję PII i sekretów, śledzenie OpenTelemetry, Sentry, metryki RED w Prometheus i health probes. - 95rust-tracing
Obsługuje crate tracing w Rust: spany, zdarzenia, pola, makro instrument, subskrybenci (fmt, JSON, OpenTelemetry, Tokio Console), filtrowanie RUST_LOG oraz redakcja logów w aplikacjach portfelowych.