MCPcopy Index your code
hub / github.com/callstack/agent-device / createRequestId

Function createRequestId

src/utils/diagnostics.ts:44–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42const diagnosticsStorage = new AsyncLocalStorage<DiagnosticsScope>();
43
44export function createRequestId(): string {
45 return crypto.randomBytes(8).toString('hex');
46}
47
48function createDiagnosticId(): string {
49 return `${Date.now().toString(36)}-${crypto.randomBytes(4).toString('hex')}`;

Callers 3

runCliFunction · 0.90
buildHttpRpcPayloadFunction · 0.90
sendToDaemonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected