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 976372f commit 271c8dcCopy full SHA for 271c8dc
1 file changed
docs/rationale.md
@@ -13,7 +13,7 @@ which try-with-resources does not allow. Take this example:
13
14
```java
15
Span span = tracer.spanBuilder("someWork").startSpan();
16
-try (Scope scope = TracingContextUtils.currentContextWith(span)) {
+try (Scope scope = span.makeCurrent()) {
17
// Do things.
18
} catch (Exception ex) {
19
span.recordException(ex);
0 commit comments