()
| 7 | * the auto-attached `{requestId=...}` logger metadata. |
| 8 | */ |
| 9 | export function generateRequestId(): string { |
| 10 | return getRequestContext()?.requestId ?? generateId().slice(0, 8) |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * Extract the client IP from a request, checking `x-forwarded-for` then `x-real-ip`. |
no test coverage detected