Skip to content

Commit 271c8dc

Browse files
authored
Fix dead API reference in rationale.md try-with-resources example (#8488)
1 parent 976372f commit 271c8dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/rationale.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ which try-with-resources does not allow. Take this example:
1313

1414
```java
1515
Span span = tracer.spanBuilder("someWork").startSpan();
16-
try (Scope scope = TracingContextUtils.currentContextWith(span)) {
16+
try (Scope scope = span.makeCurrent()) {
1717
// Do things.
1818
} catch (Exception ex) {
1919
span.recordException(ex);

0 commit comments

Comments
 (0)