Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit e24096c

Browse files
authored
Merge pull request #580 from adriancole/clarify-in-scope
Clarifies the contract around scoping a trace context
2 parents 22717ca + c75a510 commit e24096c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/java/io/opencensus/tags/TagContexts.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
*
2525
* <p>This class returns {@link TagContextBuilder builders} that can be used to create the
2626
* implementation-dependent {@link TagContext}s.
27+
*
28+
* <p>Implementations may have different constraints and are free to convert tag contexts to their
29+
* own subtypes. This means callers cannot assume the {@link #getCurrentTagContext() current
30+
* context} is the same instance as the one {@link #withTagContext(TagContext) placed into scope}.
2731
*/
2832
public abstract class TagContexts {
2933
private static final TagContexts NOOP_TAG_CONTEXTS = new NoopTagContexts();

0 commit comments

Comments
 (0)