We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88899e2 commit 63cc9b4Copy full SHA for 63cc9b4
doc-snippets/api/src/main/java/otel/ContextUsage.java
@@ -36,7 +36,7 @@ public static void contextUsage() throws Exception {
36
try (Scope scope = context.makeCurrent()) {
37
// The current context now contains the added value
38
// output => context value: value
39
- System.out.println("context value: " + context.get(exampleContextKey));
+ System.out.println("context value: " + Context.current().get(exampleContextKey));
40
}
41
42
// The local context var still contains the added value
0 commit comments