Documentation Index
Fetch the complete documentation index at: https://sedataai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
tools/call instrumentation. instrumentServer creates
one of these for you and calls instrument(). You’d only construct one
yourself if you’re managing the TelemetryManager lifecycle by hand or
testing the patching behavior.
Constructor
The MCP server instance to patch.
An initialized
TelemetryManager.Methods
instrument(): void
Patches server.registerTool and several other server methods. Idempotent —
calling twice is a no-op.
After this call:
server.registerTool(name, config, handler)records tool metadata and wrapshandlerwith the instrumented version.- Each subsequent invocation of a registered tool produces a span named
tools/call <toolName>with the standard attribute set.
What gets patched
Today onlyinstrumentTools does real work. The other patch points
(instrumentCompletions, instrumentLogs, instrumentNotifications,
instrumentPings, instrumentPrompts, instrumentResources,
instrumentRoots, instrumentSampling) are placeholders for future
auto-instrumentation.
In the meantime you can record any of those yourself with the
custom instrumentation API.
Example: standalone use
instrumentServer does internally.
See also
instrumentServer
The convenient wrapper.