From a320739a46000dfedba7d7a8ba60119d2a6dc5f7 Mon Sep 17 00:00:00 2001 From: Hamed Mansouri Date: Thu, 3 Feb 2022 01:28:45 +0330 Subject: [PATCH] Update GettingStarted.rst (#1189) --- docs/public/sdk/GettingStarted.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/public/sdk/GettingStarted.rst b/docs/public/sdk/GettingStarted.rst index 6e7b6f0916..c39f080e71 100644 --- a/docs/public/sdk/GettingStarted.rst +++ b/docs/public/sdk/GettingStarted.rst @@ -179,7 +179,7 @@ There are two different mechanisms to create TraceProvider instance sdktrace::TracerProvider(std::move(simple_processor), resource, std::move(always_on_sampler)); // set the global tracer TraceProvider - opentelemetry::trace::Provider::SetTracerProvider(provider); + opentelemetry::trace::Provider::SetTracerProvider(tracer_provider); Logging and Error Handling @@ -220,4 +220,4 @@ The custom log handler can be defined by inheriting from `opentelemetry::sdk::co } }; opentelemetry::sdk::common::internal_log::GlobalLogHandler::SetLogHandler(CustomLogHandler()); - opentelemetry::sdk::common::internal_log::GlobalLogHandler::SetLogLevel(opentelemetry::sdk::common::internal_log::LogLevel::Debug); \ No newline at end of file + opentelemetry::sdk::common::internal_log::GlobalLogHandler::SetLogLevel(opentelemetry::sdk::common::internal_log::LogLevel::Debug);