From 7b369451684040024b406d80190ffd99d36d746e Mon Sep 17 00:00:00 2001 From: Sam Atac <65615762+satac2@users.noreply.github.com> Date: Mon, 8 Jun 2020 14:43:05 -0500 Subject: [PATCH 1/2] Update context.h --- api/include/opentelemetry/context/context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/include/opentelemetry/context/context.h b/api/include/opentelemetry/context/context.h index f42cc5826f..c08e216ea8 100644 --- a/api/include/opentelemetry/context/context.h +++ b/api/include/opentelemetry/context/context.h @@ -52,7 +52,7 @@ class RuntimeContext { /* get_current: Return the current context. */ - static Context getCurrent(); + static Context GetCurrent(); /* detach: Resets the context to a previous value. From 8e02c07959673c925a11101847e4bce3e96e8504 Mon Sep 17 00:00:00 2001 From: Sam Atac <65615762+satac2@users.noreply.github.com> Date: Mon, 8 Jun 2020 14:47:04 -0500 Subject: [PATCH 2/2] Update context.h --- api/include/opentelemetry/context/context.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/api/include/opentelemetry/context/context.h b/api/include/opentelemetry/context/context.h index c08e216ea8..78e0134f31 100644 --- a/api/include/opentelemetry/context/context.h +++ b/api/include/opentelemetry/context/context.h @@ -22,7 +22,12 @@ class Context{ }; - +/* The token class provides an identifier that is used by + * the RuntimeContext attach and detach methods to keep track of context + * objects.*/ +class Token{ + Token(); +}; /* The RuntimeContext class provides a wrapper for @@ -30,15 +35,6 @@ class Context{ class RuntimeContext { public: - - /* The token class provides an identifier that is used by - * the attach and detach methods to keep track of context - * objects.*/ - class Token{ - Token(); - }; - - /* RuntimeContext: A constructor that will set the current * context to the threading local. */