Files
klz-cables.com/.pnpm-store/v10/files/a4/ca1576156db557a85b26c5c98324e9d9345bf5f1f64dfe095d59c726c34a0ad35760c66bb0bb4896e9e43eedcfa3325f56d9ac764a04b50ff704ab079e2527
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

41 lines
1.9 KiB
Plaintext

/**
* Span creation and management functions for MCP server instrumentation
*
* Provides unified span creation following OpenTelemetry MCP semantic conventions and our opinitionated take on MCP.
* Handles both request and notification spans with attribute extraction.
*/
import type { ExtraHandlerData, JsonRpcNotification, JsonRpcRequest, MCPTransport, ResolvedMcpOptions } from './types';
/**
* Creates a span for incoming MCP notifications
* @param jsonRpcMessage - Notification message
* @param transport - MCP transport instance
* @param extra - Extra handler data
* @param options - Resolved MCP options
* @param callback - Span execution callback
* @returns Span execution result
*/
export declare function createMcpNotificationSpan(jsonRpcMessage: JsonRpcNotification, transport: MCPTransport, extra: ExtraHandlerData, options: ResolvedMcpOptions, callback: () => unknown): unknown;
/**
* Creates a span for outgoing MCP notifications
* @param jsonRpcMessage - Notification message
* @param transport - MCP transport instance
* @param options - Resolved MCP options
* @param callback - Span execution callback
* @returns Span execution result
*/
export declare function createMcpOutgoingNotificationSpan(jsonRpcMessage: JsonRpcNotification, transport: MCPTransport, options: ResolvedMcpOptions, callback: () => unknown): unknown;
/**
* Builds span configuration for MCP server requests
* @param jsonRpcMessage - Request message
* @param transport - MCP transport instance
* @param extra - Optional extra handler data
* @param options - Resolved MCP options
* @returns Span configuration object
*/
export declare function buildMcpServerSpanConfig(jsonRpcMessage: JsonRpcRequest, transport: MCPTransport, extra?: ExtraHandlerData, options?: ResolvedMcpOptions): {
name: string;
op: string;
forceTransaction: boolean;
attributes: Record<string, string | number>;
};
//# sourceMappingURL=spans.d.ts.map