Function tracing_axiom::init
source · pub fn init() -> Result<(), Error>
Expand description
Initialize a global subscriber which sends traces to Axiom.
It uses the environment variables AXIOM_TOKEN
and optionally AXIOM_URL
to configure the endpoint.
If you want to manually set these, see Builder
.
§Errors
Errors if the initialization was unsuccessful, likely because a global
subscriber was already installed or AXIOM_TOKEN
and/or AXIOM_DATASET
is not set or invalid.