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 featureittapi
is enabled)TracyLayer
(added if featuretracy
is enabled)PrintPerfCountersLayer
(added if featureperf_counters
is enabled)
Returns the guard that should be kept alive for the duration of the program.