observability-and-instrumentation

observability-and-instrumentation is a skill for Claude Code from peterblazejewicz/claude-plugins. It costs 83 tokens per session (3,048 once invoked), scanned A, original, MIT.

A guide for adding logs, measurements, traces, and alerts to .NET and C# applications. These records show what an application is doing in production, where real users run it.

In plain words
What is it for?
Instrumenting ASP.NET Core, Blazor, worker, and desktop applications, especially when adding services, background jobs, external connections, retries, or caching.
Why use it?
It helps explain hangs, queue backlogs, errors, and other production problems using recorded evidence instead of guesswork.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dotnet-skills plugin — 24 skills, 9 commands, 4 agents shipped together

Good fit Instrumenting ASP.NET Core, Blazor, worker, and desktop applications, especially when adding services, background jobs, external connections, retries, or caching.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peterblazejewicz/claude-plugins/observability-and-instrumentation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add peterblazejewicz/claude-plugins --skill observability-and-instrumentation
Clone the repo
git clone --depth 1 https://github.com/peterblazejewicz/claude-plugins

Made for: Claude Code.

Or install dotnet-skills, the plugin that ships this one along with the rest of its 24 skills, 9 commands, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for observability-and-instrumentation

README.md
[![agentmods](https://agentmods.dev/badge/skills/peterblazejewicz/claude-plugins/observability-and-instrumentation/github.svg)](https://agentmods.dev/skills/peterblazejewicz/claude-plugins/observability-and-instrumentation)
Your own site
<a href="https://agentmods.dev/skills/peterblazejewicz/claude-plugins/observability-and-instrumentation"><img src="https://agentmods.dev/badge/skills/peterblazejewicz/claude-plugins/observability-and-instrumentation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for observability-and-instrumentation

Your own site · 80×15
<a href="https://agentmods.dev/skills/peterblazejewicz/claude-plugins/observability-and-instrumentation"><img src="https://agentmods.dev/badge/skills/peterblazejewicz/claude-plugins/observability-and-instrumentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,048 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.03048
Opus 5 $0.00042 $0.01524
Sonnet 5 $0.00017 $0.00610
Haiku 4.5 $0.00008 $0.00305

Measured 11d ago against content hash 4dcbf8626e7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

observability-and-instrumentation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dotnet-skills/skills/observability-and-instrumentation/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Observability and Instrumentation

Overview

Code you can't observe is code you can't operate. When a request hangs, a queue backs up, or a TaskCanceledException spikes at 2am, the only thing standing between you and a multi-hour investigation is the telemetry you added while building the feature — not after.

Instrumentation is a development responsibility, not a post-launch chore. .NET gives you first-class, vendor-neutral building blocks for all three signals — ILogger for structured logs, System.Diagnostics.Metrics for metrics, and System.Diagnostics.Activity + OpenTelemetry for traces — so there's no reason to defer it.

This skill is the bridge between debugging-and-error-recovery (dev-time diagnosis) and shipping-and-launch (launch-day monitoring): instrument as you build so production behavior is visible before you need it.

When to Use

  • Shipping a feature that will run in production
  • Adding a new service, background worker, or external integration (HTTP, EF Core, message queue)
  • A production issue was reported but the existing data can't explain what happened
  • Setting up or revising alerts
  • Reviewing a PR that introduces I/O, retries, caching, or fan-out

Process

1. Start from the questions, not the tools

Before instrumenting, write down the questions an on-call engineer will ask at 2am: Is it the database or the API? Which tenant? Is it one endpoint or all of them? Did the retry storm start before or after the deploy? Instrument to answer those questions — not to "add logging."

2. Match the signal to the question

  • Logs answer "why" — the specific event, with context. Use ILogger.
  • Metrics answer "how often / how much" — aggregates over time. Use System.Diagnostics.Metrics.
  • Traces answer "where" — which hop in a distributed call chain. Use Activity / OpenTelemetry.

3. Structured logging with ILogger

Read the full file on GitHub · 189 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 189 lines · 83 tokens per session scan A 4dcbf8626e7f

Subscribe to this mod's changes

observability-and-instrumentation is a skill published in the GitHub repository peterblazejewicz/claude-plugins (7 stars, last pushed 2mo ago), licensed MIT. It adds 83 tokens to every session and 3,048 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

github-fix-issue

Analyze and fix GitHub issues in the current repository, including issue research, scoped implementation, and testing. Use when the user asks to fix, investigate, or work on a GitHub issue by number or URL. Create branches, commits, pushes, or pull requests only when the user explicitly requests those delivery actions.

feiskyer/codex-settings · 69 tokens

azure-diagnostics

WORKFLOW SKILL — Debug and troubleshoot Azure production issues: Container Apps + Function Apps diagnostics, KQL log analysis, health checks. WHEN: 'debug production issues', 'troubleshoot container apps', 'troubleshoot function apps', 'image pull failures', 'cold start issues', 'health probe failures'. DO NOT USE…

jonathan-vella/apex-accelerator · 91 tokens

azure-messaging

Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue…

jonathan-vella/apex-accelerator · 135 tokens

debug-behavior

Investigate inconsistent or incorrect behavior with a structured workflow.

HenriqueCotta/ownership-driven-ai-customization-architecture · 16 tokens

tc-troubleshooting

Use this skill ONLY when the user reports a build error, a compilation warning, or when CheckPlcSyntaxAsync fails. It contains specific fixes for TwinCAT IL Errors (4200-4213) and explanations for standard Compiler Warnings (1502-1990).

TechIndustryX/twincat-agent · 62 tokens

ios-simulator

Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.

callstack/agent-device · 69 tokens