MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / traceAsync

Function traceAsync

references/v3-catalog/src/telemetry.ts:5–13  ·  view source on GitHub ↗
(name: string, fn: () => Promise<T>)

Source from the content-addressed store, hash-verified

3export const tracer = trace.getTracer("v3-catalog", "3.0.0.dp.1");
4
5export function traceAsync<T>(name: string, fn: () => Promise<T>): Promise<T> {
6 return tracer.startActiveSpan(name, async (span) => {
7 try {
8 return await fn();
9 } finally {
10 span.end();
11 }
12 });
13}

Callers 1

simple.tsFile · 0.90

Calls 1

startActiveSpanMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…