MCPcopy
hub / github.com/triggerdotdev/trigger.dev / handleTelemetry

Function handleTelemetry

packages/cli-v3/src/cli/common.ts:36–46  ·  view source on GitHub ↗
(action: () => Promise<void>)

Source from the content-addressed store, hash-verified

34export class OutroCommandError extends SkipCommandError {}
35
36export async function handleTelemetry(action: () => Promise<void>) {
37 try {
38 await action();
39
40 await provider?.forceFlush();
41 } catch (e) {
42 await provider?.forceFlush();
43
44 process.exitCode = 1;
45 }
46}
47
48export const tracer = getTracer();
49

Callers 6

configureDeployCommandFunction · 0.85
configureWhoamiCommandFunction · 0.85
configureLoginCommandFunction · 0.85
configureInitCommandFunction · 0.85
configureLogoutCommandFunction · 0.85

Calls 2

actionFunction · 0.50
forceFlushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…