Skip to content

HTTP Router Worker Logs

The http-router leverages Cloudflare Workers for its operations. For logs we use Worker Logs with a 1% head-based sampling rate and Sentry SDK for Cloudflare for handling all the exceptions.

Worker Logs is a managed service provided by Cloudflare that handles log retention and storage while providing an intuitive interface for log consumption and analysis.

Two primary interfaces are available for log analysis:

Log configuration is managed through the wrangler.toml configuration file.

To optimize costs while maintaining meaningful insights, we leverage head-based sampling with a 1% sampling rate as described in the configuration file.

We leverage the Sentry SDK for Cloudflare to ship all exception logs to our Sentry Instance.

We have set up the http-router project in Sentry. This single project hosts all environments, including gprd and gstg.