Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: Instrumentation is not called on Next.js v15 #930

Open
1 task
gregberge opened this issue Jan 9, 2025 · 2 comments
Open
1 task

[🐛 Bug]: Instrumentation is not called on Next.js v15 #930

gregberge opened this issue Jan 9, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@gregberge
Copy link

gregberge commented Jan 9, 2025

next-on-pages environment related information

System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.2.0: Fri Dec 6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000
CPU: (10) arm64 Apple M1 Max
Memory: 32 GB
Shell: /bin/zsh
Package Manager Used: npm (10.9.0)

Relevant Packages:
@cloudflare/next-on-pages: 1.13.7
vercel: 37.8.0
next: 15.1.3

Description

I am from GitBook, we use Next.js on Cloudflare using next-on-pages. Here is the instrumentation.ts file.

I made lot of tests and it seems that register in instrumentation.ts is not called when running on Cloudflare, also onRequestError is not called.

Reproduction

Add instrumentation.ts, add a log in the register and onRequestError, locally you can see the log, on Cloudflare, you don't.

Pages Deployment Method

None

Pages Deployment ID

No response

Additional Information

No response

Would you like to help?

  • Would you like to help fixing this bug?
@tttttahiti
Copy link

related #678

@gregberge
Copy link
Author

related #678

I mitigated this bug by downgrading Sentry, but even by doing so, the instrumentation file is not called at all. So it's two different problemd. #678 is only relative to Sentry, this one concerns anything in instrumentation.ts, even a simple log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants