()
| 70 | /** A client-supplied W3C trace context, so every span this one request produces |
| 71 | * — worker plane and Durable Object alike — is addressable by one trace id. */ |
| 72 | const newTraceContext = (): { readonly traceId: string; readonly traceparent: string } => { |
| 73 | const traceId = randomBytes(16).toString("hex"); |
| 74 | const spanId = randomBytes(8).toString("hex"); |
| 75 | return { traceId, traceparent: `00-${traceId}-${spanId}-01` }; |
| 76 | }; |
| 77 | |
| 78 | const mcpPost = ( |
| 79 | url: string, |
no test coverage detected