From a5eccec3a835814ddea6d799ef05b6e300d1c9e8 Mon Sep 17 00:00:00 2001 From: Stuart McCulloch Date: Thu, 5 Dec 2024 11:39:55 +0000 Subject: [PATCH] Custom ScopeManagers are deprecated and will be removed in a future release of dd-trace-ot --- dd-trace-ot/src/main/java/datadog/opentracing/DDTracer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dd-trace-ot/src/main/java/datadog/opentracing/DDTracer.java b/dd-trace-ot/src/main/java/datadog/opentracing/DDTracer.java index be2db34e368..eb419c514a7 100644 --- a/dd-trace-ot/src/main/java/datadog/opentracing/DDTracer.java +++ b/dd-trace-ot/src/main/java/datadog/opentracing/DDTracer.java @@ -123,7 +123,10 @@ public DDTracerBuilder extractor(HttpCodec.Extractor extractor) { return this; } + @Deprecated public DDTracerBuilder scopeManager(ScopeManager scopeManager) { + log.warn( + "Custom ScopeManagers are deprecated and will be removed in a future release of dd-trace-ot"); this.scopeManager = scopeManager; return this; }