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 Overview
Section titled “Worker Logs Overview”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.
Available Log Interfaces
Section titled “Available Log Interfaces”Two primary interfaces are available for log analysis:
Live Logs
: Real-time log monitoringWorker Logs
: Historical log analysis
Configuration Details
Section titled “Configuration Details”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.
Worker Sentry Integration
Section titled “Worker Sentry Integration”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
.