Skip to content

Commit 55bcb41

Browse files
authored
feat: add traceId to the self stats (#68)
1 parent 8fe8981 commit 55bcb41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/router.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export function setupRoutes(ctx: AppContext, expressApp: Express, routes: AppRou
110110
requestTime: req.originalContext.getTime(), //We have to use req.originalContext here to get full time
111111
requestMethod: req.method,
112112
requestUrl: req.originalUrl,
113+
traceId: req.ctx.getTraceId() || '',
113114
});
114115
}
115116
});

0 commit comments

Comments
 (0)