(op: string, fn: (wos: WorkOS) => Promise<A>)
| 342 | // span reads `workos.<operation>` instead of one undifferentiated "workos" |
| 343 | // bucket, and failures log which call actually failed. |
| 344 | const use = <A>(op: string, fn: (wos: WorkOS) => Promise<A>) => |
| 345 | withServiceLogging( |
| 346 | `workos.${op}`, |
| 347 | workosErrorFromFailure, |
| 348 | tryPromiseService(() => fn(workos)), |
| 349 | ); |
| 350 | |
| 351 | const authenticateSealedSession = (sessionData: string) => |
| 352 | Effect.gen(function* () { |