westonpace commented on a change in pull request #12408:
URL: https://github.com/apache/arrow/pull/12408#discussion_r806154621
##########
File path: cpp/src/arrow/util/tracing_internal.cc
##########
@@ -176,8 +176,23 @@ otel::trace::TracerProvider* GetTracerProvider() {
static nostd::shared_ptr<otel::trace::TracerProvider> provider =
InitializeTracing();
return provider.get();
}
+
+struct StorageSingleton {
+ StorageSingleton() : storage_(otel::context::GetDefaultStorage()) {
+ otel::context::RuntimeContext::SetRuntimeContextStorage(storage_);
Review comment:
Ah, good points. I'll file an upstream issue and put this on hold for
now.
##########
File path: cpp/src/arrow/util/tracing_internal.cc
##########
@@ -176,8 +176,23 @@ otel::trace::TracerProvider* GetTracerProvider() {
static nostd::shared_ptr<otel::trace::TracerProvider> provider =
InitializeTracing();
return provider.get();
}
+
+struct StorageSingleton {
+ StorageSingleton() : storage_(otel::context::GetDefaultStorage()) {
+ otel::context::RuntimeContext::SetRuntimeContextStorage(storage_);
Review comment:
open-telemetry/opentelemetry-cpp#1211
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]