Documentation Index Fetch the complete documentation index at: https://docs.sedata-ai.tech/llms.txt
Use this file to discover all available pages before exploring further.
Three metrics are recorded automatically when you call instrumentServer.
They cover the lifecycle of every tool call and the process itself.
mcp.server.operation.duration
Type Histogram Unit msDescription MCP request or notification duration as observed on the receiver from the time it was received until the result or ack is sent. Recorded Once per tool invocation.
Attributes
Attribute Always present Description mcp.method.name✅ Always "tools/call" for tools. mcp.tool.name✅ Tool name. mcp.session.id✅ Process-stable UUID. mcp.operation.success✅ true/false.error.typeonly on failure Error class name.
Use cases
p50/p95/p99 latency per tool.
Error-rate alerts.
SLO budgets.
mcp.server.operation.count
Type Counter Unit callsDescription MCP request or notification count as observed on the receiver. Incremented Once per tool invocation, before the handler runs.
Attributes
Attribute Description mcp.method.name"tools/call".mcp.tool.nameTool name. mcp.session.idProcess UUID.
Use cases
Traffic alerts (sudden drop, sudden spike).
Per-tool usage breakdown.
Heartbeat — if this stops incrementing, the server is stuck.
mcp.server.session.duration
Type Histogram Unit sDescription MCP server session duration as observed on the receiver from the time it was received until the session is closed. Recorded Once when telemetry.shutdown() runs.
Attributes
Attribute Description mcp.session.idThe process UUID being closed.
Use cases
Track process lifetime distribution (cold starts vs long-running).
Alert on unexpectedly short sessions (crashes).
This is only recorded if you call telemetry.shutdown() on exit. If your
process is killed without graceful shutdown, this metric won’t be emitted
for that session.
What’s not (yet) automatic
These are common metrics you may want to record yourself today — see
Custom instrumentation .
Per-tool input/output sizes.
Upstream API latency for tools that call external services.
Cache hit ratios.
Token / context usage when tools wrap LLM calls.
See also
Automatic attributes Span attributes the package writes for free.
Custom instrumentation Add your own spans, histograms, and counters.