pub fn should_use_trace() -> bool
Returns whether trace should be used based on the environment variable