nextjs with newrelic and/or tail worker?
I successfuly created PoC of my app on cloudflare pages with nextjs. However I want to use newrelic, I was thinking about using tail worker - but that's only for workers, not pages.
workers however have different way of running next (@opennextjs/cloudflare) which I think is more beta than stable.
anyone has experience on this topic or any thoughts?
2 Replies
I would check through #next-on-pages, not sure there's a great answer for that though. No mentions of new relic and Pages doesn't support logpush. Some mentions of Sentry https://discord.com/channels/595317990191398933/1135899572141568050/1202589849337598044 although some people saying they've had bundle size issues which I've seen before, and some saying they're using axiom and directly pushing on errors.
Your best bet is probably either rolling your own reporting and ctx.waitUntil call new relic's ingest apis (which I assume they have), or opennextjs with Workers gives you a million more options. Workers now have native log option and error logs, and tail workers. If you have Workers Paid you also have Workers Logpush which it looks like new relic supports: https://blog.cloudflare.com/observability-ecosystem/
The Cloudflare Blog
Expanding the Cloudflare Workers Observability Ecosystem
Cloudflare adds Data Dog, Honeycomb, New Relic, Sentry, Splunk, and Sumologic as observability partners to the Cloudflare Workers Ecosystem
Some time ago I did PoC of moving platform in my work into next-on-pages. Now I think opennextjs could be better, just need to wait for it to be more production/stable
Anyway - thanks for replying and confirming my thoughts 🙂