Rocky_Mountain_Vending/.pnpm-store/v10/files/20/0072fe9cfe0b6cc8b064408bcd45b9c7a2bcd311a791f74c20973eb89c0b72c9b048d9533647a6f9facfc1dc6946c88f5a209a740b8b9cc4a15f9fde1a1e2f
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

31 lines
No EOL
1.4 KiB
Text

/**
* Request-span correlation system for MCP server instrumentation
*
* Handles mapping requestId to span data for correlation with handler execution.
* Uses WeakMap to scope correlation maps per transport instance, preventing
* request ID collisions between different MCP sessions.
*/
import type { Span } from '../../types-hoist/span';
import type { MCPTransport, RequestId } from './types';
/**
* Stores span context for later correlation with handler execution
* @param transport - MCP transport instance
* @param requestId - Request identifier
* @param span - Active span to correlate
* @param method - MCP method name
*/
export declare function storeSpanForRequest(transport: MCPTransport, requestId: RequestId, span: Span, method: string): void;
/**
* Completes span with tool results and cleans up correlation
* @param transport - MCP transport instance
* @param requestId - Request identifier
* @param result - Tool execution result for attribute extraction
*/
export declare function completeSpanWithResults(transport: MCPTransport, requestId: RequestId, result: unknown): void;
/**
* Cleans up pending spans for a specific transport (when that transport closes)
* @param transport - MCP transport instance
* @returns Number of pending spans that were cleaned up
*/
export declare function cleanupPendingSpansForTransport(transport: MCPTransport): number;
//# sourceMappingURL=correlation.d.ts.map