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

Function captureCauseEffect

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

Source from the content-addressed store, hash-verified

158};
159
160export const captureCauseEffect = (input: unknown): Effect.Effect<string | undefined> =>
161 Effect.gen(function* () {
162 const context = yield* tagCurrentSentryScopeWithCurrentOtelSpan;
163 const eventId = yield* Effect.sync(() => captureCause(input, context));
164 if (eventId && context) {
165 yield* Effect.annotateCurrentSpan(SENTRY_EVENT_ID_ATTRIBUTE, eventId);
166 }
167 return eventId;
168 });
169
170export const ErrorCaptureLive: Layer.Layer<ErrorCapture> = Layer.succeed(
171 ErrorCapture,

Callers 6

decideFunction · 0.90
decideFunction · 0.90
trackExecutionFunction · 0.90
index.tsFile · 0.70

Calls 2

captureCauseFunction · 0.70
syncMethod · 0.65

Tested by

no test coverage detected