Telemetry & Observability Conventions
SkillMonitoring & opsTelemetry and observability conventions. Apply when adding tracing, logging, metrics, or instrumentation to Rust code.
Use Telemetry & Observability Conventions in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Telemetry & Observability Conventions and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Telemetry & Observability Conventions skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by edochi/mdvs in .claude/skills/telemetry/SKILL.md and read by Ahel’s review.
If the project has a dedicated telemetry/observability spec or conventions document, read it first — it takes precedence over the generic guidance below.
Log Levels
| Level | When to Use | Example |
|---|---|---|
error! | Unrecoverable failures requiring operator attention | External service call failed permanently |
warn! | Recoverable issues, degraded operation | Retry triggered, fallback activated |
info! | Lifecycle events, operational milestones | Server started, connection established |
debug! | Internal state useful during development | State machine transition details |
trace! | Per-frame, hot-path data (high volume) | Frame encoded, bytes serialized |
Instrumentation Depth
Not all code deserves the same instrumentation level. Choose based on the crate's role:
- Hot-path code (serialization, framing, tight loops):
trace!only, no spans. Spans add overhead that matters here. - Type definition crates (pure data types, no logic):
trace!only if anything at all. - Core business logic (servers, handlers, state machines): Full
instrumentation —
#[instrument]+ spans. - Client-facing code (SDKs, CLI flows): Full instrumentation for debuggability.
#[instrument] Rules
- Use on async functions that represent logical operations or flow steps
- Skip on hot-path synchronous functions (serialization, encoding, tight loops)
- Always
skipsensitive fields: tokens, keys, passwords, raw payloads - Include identifying fields that aid correlation (IDs, resource names)
- Set appropriate
level— default isINFO, uselevel = "debug"orlevel = "trace"for noisy functions
Structured Logging
Always use named fields, never string interpolation:
// Good: named fields — searchable, parseable
trace!(payload_bytes = payload.len(), frame_bytes = buf.len(), "frame encoded");
// Bad: string interpolation — opaque to log aggregators
trace!("frame encoded, payload={}, frame={}", payload.len(), buf.len());
Span Design
For request/message processing pipelines, use a three-tier span pattern:
- Inbound span: one per received message/request (message type, size, sender ID)
- Process span: business logic processing (operation type, affected resources)
- Outbound span: one per response/forwarded message (recipient, payload size)
This gives visibility into where time is spent and enables per-hop latency analysis.
General Principles
- Prefer
tracingoverlog— structured spans enable distributed tracing - Log at the point of decision, not at every intermediate step
- Include enough context to diagnose without reproducing: IDs, sizes, error details
- Never log secrets, tokens, keys, or raw user data — even at
trace!level - Use
Displayfor user-facing context,Debugfor developer diagnostics
Signals
- GitHub stars
- 27
- Forks
- 2
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
telemetry- Source
- github.com/edochi/mdvs
More in Monitoring & ops
Skill · anthropics
More in Monitoring & opsagent-eval
Skill · affaan-m
More in Monitoring & opspricing
Skill · coreyhaines31
More in Monitoring & opslark-okr
Skill · larksuite
More in Monitoring & opsdashboard-builder
Skill · affaan-m
More in Monitoring & opsbabysit
Skill · thedotmack
More in Monitoring & ops