From d65cea03d501cad4ff043b48fb311b97deb4b162 Mon Sep 17 00:00:00 2001 From: Eunbin Son Date: Sat, 20 Jun 2026 08:00:41 +0900 Subject: [PATCH] Fix dead API reference in rationale.md try-with-resources example --- docs/rationale.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rationale.md b/docs/rationale.md index 641cf6515c9..0311e7514e0 100644 --- a/docs/rationale.md +++ b/docs/rationale.md @@ -13,7 +13,7 @@ which try-with-resources does not allow. Take this example: ```java Span span = tracer.spanBuilder("someWork").startSpan(); -try (Scope scope = TracingContextUtils.currentContextWith(span)) { +try (Scope scope = span.makeCurrent()) { // Do things. } catch (Exception ex) { span.recordException(ex);