Axinom Mosaic Libraries
    Preparing search index...
    • Records the tenantId/environmentId of the authenticated subject onto the request-scoped AsyncLocalStorage context, once authentication resolves it. Every log emitted for the rest of this request (see mosaicContextLogMiddleware) is then automatically correlated with them, without needing to pass them explicitly through every function call.

      Only meaningful for requests already running inside a requestContext.run(...) scope (established by mosaicContextMiddleware); a no-op otherwise, e.g. for message-bus handlers or background jobs, which are not nested inside any HTTP request's async chain.

      Parameters

      • tenantId: string | undefined
      • environmentId: string | undefined

      Returns void