This is the documentation for v2 — looking for the v1 documentation?
Skip to content

MCP TypeScript SDK (V2) / @modelcontextprotocol/client / client/openTelemetry

client/openTelemetry ​

Functions ​

defaultInstrumentation() ​

defaultInstrumentation(): ProtocolInstrumentation

Defined in: packages/client/src/client/openTelemetry.ts:7

OpenTelemetry instrumentation every Client attaches; created on first use and shared.

Returns ​

ProtocolInstrumentation