MCP Server Framework - v1.0.0
    Preparing search index...
    • Execute a function within a new span. Automatically handles errors and sets span status.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>

      The result of the function

      const result = await withSpan('processRequest', async (span) => {
      span.setAttribute('request.id', requestId);
      return await processRequest();
      });