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);