instrumentation.ts not working in production #77776
Unanswered
LaurinBrechter
asked this question in
Help
Replies: 1 comment 4 replies
-
Have you been able to debug this further? Can you maybe comment out the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I set up custom node instrumentation with opentelemetry. When I run things in development mode, everything works fine and I can also export traces. The build also works fine. When I start the production server, tracing doesn't work anymore.
next.config.ts
And this is my instrumentation file
I added the console.log statements but none of them seem to get run (neither during build or when starting the server). There was already a similar post #68420 but that didn't seem to be resolved.
I also tried running without standalone output but this doesn't work either. I tried this with the latest next canary 15.3.0-canary.31
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions