Wrap any request handler, e.g. a Next.js route handler:
export const GET = withTracing(tp, async (request) => { ... });
When the first argument looks like a Request, the label defaults to "METHOD /path"; otherwise the function name.
Wrap any request handler, e.g. a Next.js route handler:
export const GET = withTracing(tp, async (request) => { ... });
When the first argument looks like a Request, the label defaults to "METHOD /path"; otherwise the function name.