Querying pages functions logs

Hi ๐Ÿ‘‹ I'm using SvelteKit with Cloudflare Pages. I'm using Sentry (via toucan js) for error handling/alerting. I'd like to be able to view and query pages logs, not just tail live. Options? I'd like to use https://developers.cloudflare.com/workers/observability/logs/workers-logs/ but it seems to be workers only. Is it coming to pages? Worker Static Assets could be an option but it's in beta. I'd like to try using baselime but perhaps Cloudflare option has been removed since Workers logs release. I'd like to try using Datadog DD trace but it only seems to support Node. Any other ideas? Thanks
Cloudflare Docs
Workers Logs ยท Cloudflare Workers docs
Store, filter, and analyze log data emitted from Cloudflare Workers.
4 Replies
Martijn
Martijnโ€ข6d ago
What did you end up using @connorads? I'd also love to use Workers Logs on Pages.
Mikkel Svartveit
Mikkel Svartveitโ€ข6d ago
Also interested in this
connorads
connoradsOPโ€ข6d ago
Didn't manage to sort it unfortunately ๐Ÿฅฒ Currently relying on Sentry breadcrumbs for error troubleshooting (although console support is just coming now in https://github.com/getsentry/sentry-javascript/issues/15439) I think we're going to eventually migrate from Pages to Workers given the announcement.
Cloudflare Pages will continue to be supported, but, going forward, all of our investment, optimizations, and feature work will be dedicated to improving Workers.
https://blog.cloudflare.com/full-stack-development-on-cloudflare-workers/
GitHub
Issues ยท getsentry/sentry-javascript
Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.
The Cloudflare Blog
Your frontend, backend, and database โ€” now in one Cloudflare Worker
You can now deploy static sites and full-stack applications on Cloudflare Workers โ€“ the primitives are all here. Framework support for React Router v7, Astro, Vue, and more are generally available today, as is the Cloudflare Vite plugin. Connect to Postgres and MySQL databases with Hyperdrive.
Martijn
Martijnโ€ข6d ago
Okay I missed that announcement. Great that those features came to Workers. I guess it's time to move over there with my projects then indeed ๐Ÿ˜…

Did you find this page helpful?