trace_mcp_calls
Records OpenTelemetry spans for MCP server calls, enabling distributed tracing and monitoring across multiple MCP servers.
Instructions
Record a trace for MCP call monitoring and distributed tracing.
Creates OpenTelemetry spans for tracking MCP server interactions, enabling distributed tracing across multiple MCP servers.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation_name": "<operation_name>",
"service_name": "<service_name>",
"duration_ms": "<duration_ms>"
},
"name": "trace_mcp_calls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attributes | No | Additional attributes to include in the trace | |
| duration_ms | Yes | Duration of the operation in milliseconds | |
| service_name | Yes | Name of the service performing the operation | |
| operation_name | Yes | Name of the operation being traced |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||