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

Function recordSpanException

packages/core/src/v3/otel/index.ts:5–15  ·  view source on GitHub ↗
(span: Span, error: unknown)

Source from the content-addressed store, hash-verified

3export { TracingSDK, type TracingSDKConfig, type TracingDiagnosticLogLevel } from "./tracingSDK";
4
5export function recordSpanException(span: Span, error: unknown) {
6 if (error instanceof Error) {
7 span.recordException(error);
8 } else if (typeof error === "string") {
9 span.recordException(new Error(error));
10 } else {
11 span.recordException(new Error(JSON.stringify(error)));
12 }
13
14 span.setStatus({ code: SpanStatusCode.ERROR });
15}

Callers 15

resolveAllMethod · 0.90
executeMethod · 0.90
_deployCommandFunction · 0.85
buildAndPushImageFunction · 0.85
compileProjectFunction · 0.85
resolveDependenciesFunction · 0.85
typecheckProjectFunction · 0.85
copyAdditionalFilesFunction · 0.85
loginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…