Observability in Next.js

How do y'all manage logging, monitors, and observability in general for your Next.js apps? I am looking for something that logs all incoming requests, the message etc, and also set up monitors based on it.
13 Replies
Neto
Neto6mo ago
GitHub
GitHub - axiomhq/next-axiom: The official Next.js library for Axiom.
The official Next.js library for Axiom. Contribute to axiomhq/next-axiom development by creating an account on GitHub.
Neto
Neto6mo ago
do no use vercel to export to somewhere else
Rhys
Rhys6mo ago
+1 to Axiom it's great
Rhys
Rhys6mo ago
No description
No description
abhwshek
abhwshekOP6mo ago
I use axiom, and I like it but the vercel integration is bad vercel only allow 1 line of logs to be added – so whenever something breaks and I looks up the logs, I only get to see one line of the error message
Rhys
Rhys6mo ago
i think thats being fixed in the next few days
abhwshek
abhwshekOP6mo ago
i dont think so.. i contacted axiom support and they said there's nothing they can do if vercel integration is being used
Jacob
Jacob6mo ago
PostHog is pretty good haven't used it massivly just yet but heard some pretty amazing things about it: https://posthog.com/
PostHog - How developers build successful products
PostHog is the only all-in-one platform for product analytics, feature flags, session replays, A/B testing, and surveys that's built for developers.
Rhys
Rhys6mo ago
PostHog is good but it isn’t observability it’s analytics
Jacob
Jacob6mo ago
That's very true my bad, would you every use these 2 tools together?
Rhys
Rhys6mo ago
Yep I store high volume ephemeral data like individual request logs in axiom, and then long term persistent data like page views and button clicks in PostHog
Jacob
Jacob6mo ago
Yeh awesome thank you not sure the best aproach going forward with this as well
abhwshek
abhwshekOP5mo ago
we use posthog posthog is great for client side stuff and client side observability; not server side
Want results from more Discord servers?
Add your server