()
| 140 | * `process.env.AGENT_ORG_ID` from a prior request on the same Lambda instance. |
| 141 | */ |
| 142 | export function getRequestOrgId(): string | undefined { |
| 143 | const store = als.getStore(); |
| 144 | if (store !== undefined) return store.orgId; |
| 145 | return process.env.AGENT_ORG_ID; |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * Get the current request's IANA timezone (e.g. "America/Los_Angeles"). |
no outgoing calls