MCPcopy
hub / github.com/simstudioai/sim / Storage

Interface Storage

packages/logger/src/request-context.ts:11–14  ·  view source on GitHub ↗

* AsyncLocalStorage is only available in Node.js. In Edge/browser contexts * we fall back to a no-op implementation so the logger import doesn't break.

Source from the content-addressed store, hash-verified

9 * we fall back to a no-op implementation so the logger import doesn't break.
10 */
11interface Storage<T> {
12 getStore(): T | undefined
13 run<R>(store: T, fn: () => R): R
14}
15
16let storage: Storage<RequestContext>
17

Callers 5

getRequestContextFunction · 0.80
isInsideDbTransactionFunction · 0.80
instrumentPoolClientFunction · 0.80
runWithRequestContextFunction · 0.65
instrumentPoolClientFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected