agents-sdk-typescript-otel

agents-sdk-typescript-otel is a skill for Claude Code, Codex from microsoft/Agents. It costs 88 tokens per session (3,686 once invoked), scanned A, original, MIT.

A guide to adding OpenTelemetry—an open standard for collecting traces, measurements, and logs—to Microsoft 365 Agents SDK apps written in JavaScript or TypeScript.

In plain words
What is it for?
Use it when configuring or troubleshooting tracing, metrics, logs, OTLP exports, Aspire Dashboard, Application Insights, or Azure Monitor in an Agents SDK application.
Why use it?
It helps teams see how an application behaves across requests and components while avoiding duplicate telemetry setup or accidental exposure of prompts, tokens, and credentials.

Skill for Claude CodeCodex

Part of the agents-for-js plugin — 4 skills shipped together

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.

agentmods
npx agentmods add skills/microsoft/agents/agents-sdk-typescript-otel
Any agent
npx skills add microsoft/Agents --skill agents-sdk-typescript-otel
Clone the repo
git clone --depth 1 https://github.com/microsoft/Agents

Made for: Claude Code, Codex.

Or install agents-for-js, the plugin that ships this one along with the rest of its 4 skills.

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 agents-sdk-typescript-otel

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/agents/agents-sdk-typescript-otel.svg)](https://agentmods.dev/skills/microsoft/agents/agents-sdk-typescript-otel)
Your own site
<a href="https://agentmods.dev/skills/microsoft/agents/agents-sdk-typescript-otel"><img src="https://agentmods.dev/badge/skills/microsoft/agents/agents-sdk-typescript-otel.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,686 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00088 $0.03686
Opus 5 $0.00044 $0.01843
Sonnet 5 $0.00018 $0.00737
Haiku 4.5 $0.00009 $0.00369

Measured 4d ago against content hash 0143fe086e7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agents-sdk-typescript-otel 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/start-aspire-dashboard.ps1), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

agent-plugins/agents-for-js/skills/agents-sdk-typescript-otel/SKILL.md · 456 lines

How it starts

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

OpenTelemetry for Agents SDK (JavaScript/TypeScript)

Goal

Configure traces, metrics, and logs for an Agents SDK application, including the SDK's built-in telemetry and a local Aspire Dashboard. Make the smallest complete change that fits the project's module system, build process, package manager, and existing observability architecture.

Non-negotiable rules

  • Inspect the project before editing. Extend an existing OpenTelemetry SDK registration instead of creating a second global provider.
  • Start the OpenTelemetry SDK before importing the Agents SDK, HTTP, Express, or the application entry point. Preload instrumentation with Node's --import or --require option.
  • Use a stable application-specific service.name.
  • Let OTLP exporters read standard environment variables. Never embed collector credentials, API keys, or connection strings in source.
  • Do not force all OpenTelemetry packages to the same version. The JavaScript package family intentionally mixes stable API/SDK versions and 0.x exporter/instrumentation versions. Install a compatible set together and preserve the lockfile.
  • Never add message text, prompts, responses, tokens, authorization headers, cookies, secrets, attachment contents, user names, user IDs, conversation IDs, activity IDs, or arbitrary HTTP headers to custom telemetry by default.
  • Keep custom metric attributes low-cardinality. Good dimensions include route type, activity type, channel ID, operation, status, and error type.
  • Do not configure always-on sampling as a production default. Honor OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG.
  • Explicitly flush telemetry during shutdown. Do not silently ignore exporter or shutdown errors.
  • Aspire Dashboard anonymous mode is local-development only. Bind it to loopback and never deploy that configuration.
  • Telemetry must record and rethrow application errors, not swallow them.

Workflow

Complete these steps in order.

1. Inspect the application

Read the full file on GitHub · 456 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 456 lines · 88 tokens per session scan A 0143fe086e7c

Subscribe to this mod's changes

agents-sdk-typescript-otel is a skill published in the GitHub repository microsoft/Agents (1,050 stars, last pushed 7d ago), licensed MIT. It adds 88 tokens to every session and 3,686 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-30.

Related

Other skills, from other repositories

weilink

Manage WeChat messaging via WeiLink. Activate when the user mentions "WeChat", "weilink", "微信", messaging contacts, checking messages, replying to someone, or sending files/images to a contact.

Oaklight/weilink · 46 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

azure-mgmt-apicenter-dotnet

Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API…

microsoft/skills · 97 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

azure-communication-chat-java

Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.

microsoft/skills · 41 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens