File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 3131#include " w3c_propagation.h"
3232
3333const void * elastic_apm_profiling_correlation_process_storage_v1 = nullptr ;
34- thread_local struct datadog ::tracing::TLSStorage*
35- elastic_apm_profiling_correlation_tls_v1 = nullptr ;
3634thread_local std::unique_ptr<datadog::tracing::TLSStorage> tls_info_holder =
37- nullptr ;
35+ std::make_unique<datadog::tracing::TLSStorage>();
36+ thread_local struct datadog ::tracing::TLSStorage*
37+ elastic_apm_profiling_correlation_tls_v1 = tls_info_holder.get();
3838
3939namespace datadog {
4040namespace tracing {
@@ -120,9 +120,6 @@ Tracer::Tracer(const FinalizedTracerConfig& config,
120120}
121121
122122void Tracer::correlate (const Span& span) {
123- tls_info_holder = std::make_unique<datadog::tracing::TLSStorage>();
124- elastic_apm_profiling_correlation_tls_v1 = tls_info_holder.get ();
125-
126123 struct TLSStorage * tls_data = elastic_apm_profiling_correlation_tls_v1;
127124 tls_data->valid = 0 ;
128125
You can’t perform that action at this time.
0 commit comments