From 4ba23bacf3fcf003f730db43dcc8a9b004ff619d Mon Sep 17 00:00:00 2001 From: Alex Knott <1138883+aknott@users.noreply.github.com> Date: Fri, 7 Nov 2025 14:03:58 -0800 Subject: [PATCH] [API] Make Request Context Token constructor public (#3708) --- api/include/opentelemetry/context/runtime_context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/include/opentelemetry/context/runtime_context.h b/api/include/opentelemetry/context/runtime_context.h index 94be32bf18..0ef170571b 100644 --- a/api/include/opentelemetry/context/runtime_context.h +++ b/api/include/opentelemetry/context/runtime_context.h @@ -26,11 +26,11 @@ class Token public: bool operator==(const Context &other) const noexcept { return context_ == other; } - ~Token() noexcept; + virtual ~Token() noexcept; -private: friend class RuntimeContextStorage; +protected: // A constructor that sets the token's Context object to the // one that was passed in. Token(const Context &context) : context_(context) {}