(input: unknown)
| 342 | }; |
| 343 | |
| 344 | export 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 |
no test coverage detected