This crate bundles common functionality for binaries produced by the init4
project. It provides:
- environment parsing utilities
- a standard
tracing
setup withotlp
support - a standard server for prometheus
metrics
- standard environment variables to configure these features
This crate is intended to be used as a base for all binaries produced by the
init4
project. It is not intended for outside consumption.
use init4_bin_base::init4;
fn main() {
init4();
// your code here
}
Build the crate docs with cargo doc --open
to learn more.