init_tracing

Function init_tracing 

Source
pub fn init_tracing() -> Result<impl Drop, Error>
Expand description

Initialize the tracing with the default values depending on the features enabled and environment variables set.

The following layers are added:

  • PrintTreeLayer (added always)
  • IttApiLayer (added if feature ittapi is enabled)
  • TracyLayer (added if feature tracy is enabled)
  • PrintPerfCountersLayer (added if feature perf_counters is enabled)

Returns the guard that should be kept alive for the duration of the program.