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);