Change context.getKey to context.get (#3268)

There is no `getValue` in the `Context` interface
This commit is contained in:
Will Sargent 2021-05-30 21:19:33 -07:00 committed by GitHub
parent 1bfc7871bd
commit 6f1a4537d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"));
* ... * ...
* } * }
* } * }