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

Function generateRequestId

apps/sim/lib/core/utils/request.ts:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 * the auto-attached `{requestId=...}` logger metadata.
8 */
9export function generateRequestId(): string {
10 return getRequestContext()?.requestId ?? generateId().slice(0, 8)
11}
12
13/**
14 * Extract the client IP from a request, checking `x-forwarded-for` then `x-real-ip`.

Callers 15

executeToolFunction · 0.90
executeToolRequestFunction · 0.90
executeMcpToolFunction · 0.90
disableUserResourcesFunction · 0.90
syncActiveSideEffectsFunction · 0.90
performFullDeployFunction · 0.90
performFullUndeployFunction · 0.90
performActivateVersionFunction · 0.90
performCreateWorkflowFunction · 0.90
performUpdateWorkflowFunction · 0.90

Calls 2

getRequestContextFunction · 0.90
generateIdFunction · 0.90

Tested by

no test coverage detected