(input: unknown)
| 334 | }; |
| 335 | |
| 336 | export 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 |
no test coverage detected