/fastmcp-engineering:observability-opentelemetryfrom fastmcp-engineering
Evidence-first observability engineering for FastMCP systems using OpenTelemetry, structured logs, metrics and traces.
Ships in fastmcp-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Make production behavior explainable across the MCP boundary, application/domain workflows and infrastructure without leaking sensitive data or creating unbounded telemetry cost.
Scope / When to use: observability engineering for FastMCP systems using OpenTelemetry, structured logs, metrics and traces. Trigger: designing or changing tracing, metrics, structured logs, correlation, redaction, sampling, or telemetry architecture. Upstream / Prerequisite: identified exact dependency versions; evidence ledger recorded. Mission / Goal: make production behavior explainable across the MCP boundary, application/domain workflows and infrastructure without leaking sensitive data or creating unbounded telemetry cost. Research / Evidence: read current official OpenTelemetry documentation/specification and exact-version FastMCP, PydanticAI, SQLAlchemy and relevant instrumentation docs/source/tests; inspect repository conventions; record an evidence ledger and re-check version-sensitive APIs before completion. Decision / Selection rules: design traces, metrics and logs as complementary signals; trace meaningful boundaries; use stable low-cardinality span attributes and metric labels; never put prompts, model outputs, authorization tokens, passwords, secrets, full SQL parameters or arbitrary user content into spans by default; log once at the ownership boundary with actionable context; map failures to stable outcome/error categories; sample intentionally; treat telemetry as sensitive infrastructure with data minimization, redaction, access control, retention and export policies. Version / Compatibility: identify exact dependency versions; use semantic conventions supported by the actual instrumentation version.
Deliverables / Artifacts: observability architecture; signal matrix; semantic-convention mapping; trace/span policy; metric catalog with cardinality budgets; structured-log schema; redaction policy; sampling/retention policy; test matrix; evidence ledger; rejected alternatives; verification report. Verification / Testing: test trace propagation, span names/attributes, metric cardinality, log redaction, error classification and graceful exporter shutdown; use in-memory/test exporters where possible; include a negative test proving secrets and sensitive payloads are absent; test failure of telemetry exporters without failing the business operation. Failure / Stop conditions: reject telemetry that emits bearer tokens, cookies, API keys, database credentials, raw authorization headers or secrets, or raw prompts/responses unless explicitly approved and protected; observability failure must not take down the MCP service; avoid unbounded telemetry cost and high-cardinality dimensions. Positive scenario: production behavior is explainable with redacted, low-cardinality telemetry that fails safely. Negative scenario: sensitive data leaks into spans/logs or telemetry cost grows unbounded.
Identify exact dependency versions. Read current official OpenTelemetry documentation/specification and exact-version FastMCP, PydanticAI, SQLAlchemy and relevant instrumentation docs/source/tests. Inspect repository conventions. Record an evidence ledger and re-check version-sensitive APIs before completion.
Design traces, metrics and logs as complementary signals. Do not duplicate the same high-cardinality data into all three. Define ownership and correlation between them.
Trace meaningful boundaries: MCP request/session, primitive invocation, application use case, external LLM call, database operation and outbound HTTP/queue operation where instrumentation supports it. Propagate context across async tasks and supported transports. Use stable low-cardinality span attributes. Never put prompts, model outputs, authorization tokens, passwords, secrets, full SQL parameters or arbitrary user content into spans by default.
Use semantic conventions supported by the actual instrumentation version. Do not invent attribute names where an official convention exists.
Define service-level metrics before implementation: request/tool latency, errors, in-flight work, saturation/resource usage and dependency health. Control label cardinality. Never label metrics by user ID, request ID, raw URI, arbitrary tool arguments or unbounded exception text. Prefer bounded dimensions such as operation class, outcome, transport and dependency.
Use machine-readable logs with consistent timestamp, severity, service, environment, operation, trace/span correlation and stable event names. Redact secrets and sensitive user data at the logging boundary. Avoid duplicate exception logging across layers. Log once at the ownership boundary with actionable context.
Every request should have a trace context where supported. Correlation IDs must not be used as authorization credentials. Preserve trace context across async work and explicitly define correlation for durable jobs/events.
Map failures to stable outcome/error categories. Do not use exception message text as a metric label. Capture stack traces only in controlled diagnostic channels. Keep protocol/application/security errors distinguishable.
Define sampling intentionally. Production sampling must not make security/audit requirements disappear. Tail/head sampling decisions must be documented. Telemetry exporters, queues and buffers must be bounded and fail safely; observability failure must not take down the MCP service.
Treat telemetry as sensitive infrastructure. Apply data minimization, redaction, access control, retention and export policies. Never emit bearer tokens, cookies, API keys, database credentials, raw authorization headers or secrets. Avoid raw prompts/responses unless explicitly approved and protected.
Instrumentation belongs at stable boundaries, not scattered through domain code. Domain logic should remain independent from OpenTelemetry APIs unless a domain-level business event is intentionally modeled separately. Prefer framework instrumentation and middleware/interceptors over manual spans everywhere.
Telemetry must be asynchronous/bounded where appropriate, have timeout/export failure behavior, and support graceful shutdown/flush. Backpressure in exporters must not become unbounded application memory growth.
Test trace propagation, span names/attributes, metric cardinality, log redaction, error classification and graceful exporter shutdown. Use in-memory/test exporters where possible. Include a negative test proving secrets and sensitive payloads are absent. Test failure of telemetry exporters without failing the business operation.
What SKILL.md sets; muted values are Claude Code's defaults
58 skills in this plugin
/pydantic-ai-agent-integrationEngineer PydanticAI agents behind explicit application boundaries and integrate them with FastMCP without leaking agent state, prompts, model concerns, or provider details into domain logic./api-contract-schema-engineeringEvidence-first API and MCP contract engineering with Pydantic v2 and JSON Schema./api-lifecycle-versioningEvidence-first API lifecycle, schema evolution and compatibility engineering for FastMCP/MCP servers.Other plugins' skills for the same job
Generated from the plugin's indexed repository (evgenygurin/fastmcp-engineering) — no native marketplace selected
npx claudepluginhub p/evgenygurin-fastmcp-engineering