Skip to content

Commit 07f01c3

Browse files
authored
ContextKey update example code (#7420)
1 parent 3f73f12 commit 07f01c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context/src/main/java/io/opentelemetry/context/ContextKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* private static final ContextKey<MyState> KEY = ContextKey.named("MyState");
1717
*
1818
* public Context startWork() {
19-
* return Context.withValues(KEY, new MyState());
19+
* return Context.with(KEY, new MyState());
2020
* }
2121
*
2222
* public void continueWork(Context context) {

0 commit comments

Comments
 (0)