aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2018-06-26 17:22:19 -0700
committerKristen Kozak <sebright@google.com>2018-06-26 17:22:35 -0700
commit13a5c96d2602f5af2eafe9c23b9e92955ecf3dff (patch)
tree5fa4d2dc306c62bb0224ba8874f4825bab99159a /api
parent660e8f375bb483a3eb817940b3aa8534f86da314 (diff)
downloadopencensus-java-13a5c96d2602f5af2eafe9c23b9e92955ecf3dff.tar.gz
Clarify Javadoc for Tagger.withTagContext.
See census-instrumentation/opencensus-specs#99.
Diffstat (limited to 'api')
-rw-r--r--api/src/main/java/io/opencensus/tags/Tagger.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/src/main/java/io/opencensus/tags/Tagger.java b/api/src/main/java/io/opencensus/tags/Tagger.java
index f3ba0f5b..f1e203ad 100644
--- a/api/src/main/java/io/opencensus/tags/Tagger.java
+++ b/api/src/main/java/io/opencensus/tags/Tagger.java
@@ -73,9 +73,9 @@ public abstract class Tagger {
public abstract TagContextBuilder currentBuilder();
/**
- * Enters the scope of code where the given {@code TagContext} is in the current context and
- * returns an object that represents that scope. The scope is exited when the returned object is
- * closed.
+ * Enters the scope of code where the given {@code TagContext} is in the current context
+ * (replacing the previous {@code TagContext}) and returns an object that represents that scope.
+ * The scope is exited when the returned object is closed.
*
* @param tags the {@code TagContext} to be set to the current context.
* @return an object that defines a scope where the given {@code TagContext} is set to the current