-
-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Description
Noticed in my Cloudflare Observability we are duplicating logs. Cloudflare logs the request (with a unique requestId) and THEN shows a log for evlog.
These two logs are from the same request but one shows a Cloudflare generated requestId and one shows an evlog generated requestId.
I Noticed the requestId produced by evlog is colliding with the Cloudflare logs, causing what I'm assuming to be the duplicate log.
I haven't tested this thoroughly but wanted to get your feedback on this.
Exmaple CF log (the second log shown in screenshot, happens first):
// no evlogs here
"$metadata": { "id": "01KG89F1Q777NBXQ0BB7W91S3T", "requestId": "9c63b6de39672cc1"} // Produced by CF
Example exlog (the first log shown in screenshot, happens second):
"requestId": "ebc215f3-12e6-443e-8f0a-2129b0173c87", // Produced by evlog
"$metadata": { "id": "01KG89F1RXFTE0WYKG541R3ZPZ", "requestId": "ebc215f3-12e6-443e-8f0a-2129b0173c87"} // Produced by CF
Notice the request ID is not a typical cloudflare shape in second log
I don't mind patching some way to either match the CF generated request ID or something to make it work for me.
What do you see on vercel logs?
Reproduction
Preset: cloudflare-module
Cloudflare worker using Nuxt
| Operating system | Linux 6.18.6-arch1-1 |
| CPU | 12th Gen Intel(R) Core(TM) i9-12900K (24 cores) |
| Node.js version | v24.11.1 |
| nuxt/cli version | 3.32.0 |
| Package manager | pnpm@10.28.1 |
| Nuxt version | 4.3.0 |
| Nitro version | 2.13.1 |
| Builder | vite@7.3.1 |
| Config | app, auth, compatibilityDate, css, devtools, evlog, experimental, fonts, hub, icon, imports, mdc, modules, nitro, routeRules, runtimeConfig, sourcemap, telemetry, typescript, uiPro, vite |
| Modules | nuxt-auth-utils@0.5.28, @nuxthub/core@0.10.5, @nuxt/image@2.0.0, @nuxt/fonts@0.12.1, @nuxt/scripts@0.13.2, @nuxt/ui@4.4.0, @nuxtjs/mdc@0.20.0, motion-v/nuxt@1.10.2, nuxt-charts@2.1.1, evlog/nuxt@1.0.1 |
Logs
No response