MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / captureCauseEffect

Function captureCauseEffect

apps/cloud/src/observability/index.ts:336–344  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

334};
335
336export const captureCauseEffect = (input: unknown): Effect.Effect<string | undefined> =>
337 Effect.gen(function* () {
338 const context = yield* tagCurrentSentryScopeWithCurrentOtelSpan;
339 const eventId = yield* Effect.sync(() => captureCause(input, context));
340 if (eventId && context) {
341 yield* Effect.annotateCurrentSpan(SENTRY_EVENT_ID_ATTRIBUTE, eventId);
342 }
343 return eventId;
344 });
345
346/**
347 * Mark the current Sentry scope as "the Durable Object has already dealt with

Callers 11

handlers.tsFile · 0.90
runWorkOsEventsSyncFunction · 0.90
decideFunction · 0.90
failOpenFunction · 0.90
resolveExemptionFunction · 0.90
trackExecutionFunction · 0.90
setMemberSeatsFunction · 0.90
index.tsFile · 0.70

Calls 2

captureCauseFunction · 0.70
syncMethod · 0.65

Tested by

no test coverage detected