Cloudflare DevelopersCD
Cloudflare Developers2y ago
2 replies
fernando

Hi, has anyone been able to implement

Hi, has anyone been able to implement Baselime on a NextJS app in Cloudflare Pages?

- This option doesn't work because it uses the functions folder and I use next-on-pages to build the app, and these are incompatible with each other (the same applies to HoneyComb): https://baselime.io/docs/sending-data/platforms/cloudflare/pages/

- If I want to use OpenTelemetry for NextJS, I get errors like Module not found: Can't resolve 'perf_hooks', and as I understand it, this is because Pages is not a full Node environment: https://baselime.io/docs/sending-data/languages/next.js/. Is there any way to resolve perf_hooks, child_process, fs, os, http?

Is there any solution to have observability in Pages? Any better documentation or example repo?

P.S. The NextJS app was generated with C3 and doesn't have any additional configuration other than what I'm trying to set up with Baselime.
CleanShot_2024-05-27_at_11_.14.13.png
CleanShot_2024-05-27_at_11_.15.18.png
CleanShot_2024-05-27_at_11_.16.22.png
Was this page helpful?