Skip to content

Commit c663b42

Browse files
authored
Merge pull request #554 from open-telemetry/main
[API] Make Request Context Token constructor public (open-telemetry#3708)
2 parents ec10f8a + 4ba23ba commit c663b42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/include/opentelemetry/context/runtime_context.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ class Token
2626
public:
2727
bool operator==(const Context &other) const noexcept { return context_ == other; }
2828

29-
~Token() noexcept;
29+
virtual ~Token() noexcept;
3030

31-
private:
3231
friend class RuntimeContextStorage;
3332

33+
protected:
3434
// A constructor that sets the token's Context object to the
3535
// one that was passed in.
3636
Token(const Context &context) : context_(context) {}

0 commit comments

Comments
 (0)