From c7211ff2c9664baf721cc7f662209ad5e2076819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Sun, 28 Jul 2024 18:56:52 +0200 Subject: [PATCH] Update GlobalState.Callbacks.cpp --- XInputBridge/GlobalState.Callbacks.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/XInputBridge/GlobalState.Callbacks.cpp b/XInputBridge/GlobalState.Callbacks.cpp index 14627bcb..50b252d8 100644 --- a/XInputBridge/GlobalState.Callbacks.cpp +++ b/XInputBridge/GlobalState.Callbacks.cpp @@ -161,8 +161,8 @@ DWORD WINAPI GlobalState::InitAsync(_In_ LPVOID lpParameter) const auto resource = sdkresource::Resource::Create(resourceAttributes); auto traceExporter = otlp::OtlpGrpcExporterFactory::Create(); - auto traceProcessor = sdktrace::SimpleSpanProcessorFactory::Create(std::move(traceExporter)); - const std::shared_ptr traceProvider = sdktrace::TracerProviderFactory::Create(std::move(traceProcessor), resource); + std::unique_ptr traceProcessor = sdktrace::SimpleSpanProcessorFactory::Create(std::move(traceExporter)); + std::shared_ptr traceProvider = sdktrace::TracerProviderFactory::Create(std::move(traceProcessor), resource); trace::Provider::SetTracerProvider(traceProvider); @@ -172,7 +172,7 @@ DWORD WINAPI GlobalState::InitAsync(_In_ LPVOID lpParameter) auto loggerExporter = otlp::OtlpGrpcLogRecordExporterFactory::Create(); auto loggerProcessor = sdklogs::SimpleLogRecordProcessorFactory::Create(std::move(loggerExporter)); - const std::shared_ptr loggerProvider = sdklogs::LoggerProviderFactory::Create(std::move(loggerProcessor), resource); + std::shared_ptr loggerProvider = sdklogs::LoggerProviderFactory::Create(std::move(loggerProcessor), resource); logs::Provider::SetLoggerProvider(loggerProvider);