Crate prima_tracing

source
Expand description

prima_tracing provide an handy way for configuring the tracing crate with support for JSON output formatter and integration with opentelemetry

§Usage


use prima_tracing::{builder, configure_subscriber, Country, Environment, init_subscriber};
let subscriber = configure_subscriber(
  builder("ping")
    .with_country(Country::Common)
    .with_env(Environment::Dev)
    .build()
);

let _guard = init_subscriber(subscriber);

Structs§

Enums§

  • All the possible countries in which the application can run.
  • All the possible environments in which the application can run.

Traits§

Functions§