Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not check get_DD_TRACE_ENABLED() outside of a request (#2631)
get_DD_TRACE_ENABLED() must not be accessed outside of requests, given that it accesses a request local array of configs. DDTRACE_G(active_stack) is supposed to be always properly reset between requests, so we can just put this first and then the calls to get_DD_TRACE_ENABLED() are always correct. Fixes a crash in datadog_profiling::timeline::timeline_mshutdown doing collect_idle() and ultimately accessing the profiling_context here.
- Loading branch information