Change context.getKey to context.get (#3268)
There is no `getValue` in the `Context` interface
This commit is contained in:
parent
1bfc7871bd
commit
6f1a4537d3
|
|
@ -20,9 +20,9 @@ package io.opentelemetry.context;
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* public void continueWork(Context context) {
|
* public void continueWork(Context context) {
|
||||||
* MyState state = context.getValue(KEY);
|
* MyState state = context.get(KEY);
|
||||||
* // Keys are compared by reference only.
|
* // Keys are compared by reference only.
|
||||||
* assert state != Context.current().getValue(ContextKey.named("MyState"));
|
* assert state != Context.current().get(ContextKey.named("MyState"));
|
||||||
* ...
|
* ...
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue