Introducing Foundations - our open source Rust service foundation library
Jan 24, 2024Ivan Nikulin

Summary
This post introduces 'Foundations,' an open-source Rust library designed to simplify the development of distributed, production-grade systems. It addresses key challenges in observability (logging, tracing, metrics), configuration, and security, drawing from Cloudflare's experience with its Oxy proxy framework. The library offers modularity, API ergonomics, and simplified setup, with specific enhancements in tracing (sampling flexibility, distributed trace stitching, trace forking) and logging (implicit context propagation). It also integrates with the Prometheus client for metrics and provides a procedural macro for easier metric definition.
More from the Data Infrastructure & Analytics trail
- Introducing Cloudflare Basin: an open, serverless data platform, now generally available
- Introducing the Billable Usage API: programmatic cost visibility for Cloudflare
- Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402
- How we built Cloudflare's data platform and an AI agent on top of it
- Iran's Internet is partially restored, Cloudflare Radar data shows