feat(server): enable cls plugin to store request id (#9758)

POC
This commit is contained in:
fengmk2
2025-01-20 10:00:21 +00:00
parent fa5e6e1f45
commit 2ae05c28b7
7 changed files with 70 additions and 4 deletions
+2
View File
@@ -12,6 +12,7 @@ import {
import { SocketIoAdapter } from './base/websocket';
import { AuthGuard } from './core/auth';
import { ENABLED_FEATURES } from './core/config/server-feature';
import { responseRequestIdHeader } from './middleware/request-id';
import { serverTimingAndCache } from './middleware/timing';
export async function createApp() {
@@ -31,6 +32,7 @@ export async function createApp() {
}
app.use(serverTimingAndCache);
app.use(responseRequestIdHeader);
app.use(
graphqlUploadExpress({