MCPcopy
hub / github.com/fastify/fastify / setGenReqId

Method setGenReqId

types/instance.d.ts:479–479  ·  view source on GitHub ↗

* Set a function that will generate a request-ids

(fn: (req: RawRequestDefaultExpression<RawServer>) => string)

Source from the content-addressed store, hash-verified

477 * Set a function that will generate a request-ids
478 */
479 setGenReqId(fn: (req: RawRequestDefaultExpression<RawServer>) => string): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>;
480
481 /**
482 * Hook function that is called when creating a child logger instance for each request

Callers 5

genReqId.test.jsFile · 0.80
bazInstanceFunction · 0.80
barInstanceFunction · 0.80
fooInstanceFunction · 0.80
instance.tst.tsFile · 0.80

Calls

no outgoing calls

Tested by 3

bazInstanceFunction · 0.64
barInstanceFunction · 0.64
fooInstanceFunction · 0.64