📦
Opentelemetry Instrumentation MCP
MCP server: Opentelemetry Instrumentation MCP
0 installs
1 stars
Trust: 37 — Low
Devtools
Installation
npx opentelemetry-instrumentation-mcpAsk AI about Opentelemetry Instrumentation MCP
Powered by Claude · Grounded in docs
I know everything about Opentelemetry Instrumentation MCP. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
OpenTelemetry Model Context Protocol Instrumentation for Node.js
This module provides automatic instrumentation for the Model Context Protocol (MCP) SDK.
Installation
npm install --save @opentelemetry/instrumentation-mcp
Usage
import { NodeSDK } from '@opentelemetry/sdk-node';
import { MCPInstrumentation } from '@opentelemetry/instrumentation-mcp';
const sdk = new NodeSDK({
instrumentations: [new MCPInstrumentation()],
});
sdk.start();
The instrumentation automatically patches the following MCP SDK components from @modelcontextprotocol/sdk:
server.SSEServerTransportserver.StdioServerTransport
Spans Created
For each transport type, the following spans are created with RPC attributes:
SSE Transport
mcp.sse.message- When a message is received- Attributes:
rpc.method,rpc.jsonrpc,rpc.id
- Attributes:
mcp.sse.error- When an error occursmcp.sse.send- When a message is sent- Attributes:
rpc.method,rpc.jsonrpc,rpc.id,rpc.related_id
- Attributes:
Stdio Transport
mcp.stdio.message- When a message is received- Attributes:
rpc.method,rpc.jsonrpc,rpc.id
- Attributes:
mcp.stdio.error- When an error occursmcp.stdio.send- When a message is sent- Attributes:
rpc.method,rpc.jsonrpc,rpc.id,rpc.related_id
- Attributes:
Configuration
The instrumentation has no configuration options at this time.
License
Apache 2.0 - See LICENSE for more information.
