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

Function captureCauseEffect

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

Source from the content-addressed store, hash-verified

342};
343
344export const captureCauseEffect = (input: unknown): Effect.Effect<string | undefined> =>
345 Effect.gen(function* () {
346 const context = yield* tagCurrentSentryScopeWithCurrentOtelSpan;
347 const eventId = yield* Effect.sync(() => captureCause(input, context));
348 if (eventId && context) {
349 yield* Effect.annotateCurrentSpan(SENTRY_EVENT_ID_ATTRIBUTE, eventId);
350 }
351 return eventId;
352 });
353
354/**
355 * Mark the current Sentry scope as "the Durable Object has already dealt with

Callers 9

handlers.tsFile · 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