▲ | quadhome 5 days ago | |
AsyncLocalStorage.enterWith is the wrong method; .enterWith changes the logger for across the *synchronous* execution. This doesn't matter if there's only one request happening at time-- like when you're testing locally. But that's why it didn't work on the actual project. Use .run.
| ||
▲ | huksley 5 days ago | parent | next [-] | |
I have enterWith working perfectly with async/sync flow - all operations between request and response are logged with request id transparently. I am using custom server for both standalone build & dev server, nextjs 14, node 22. | ||
▲ | 5 days ago | parent | prev | next [-] | |
[deleted] | ||
▲ | dminik 5 days ago | parent | prev [-] | |
Nope, this doesn't work either. |