Skip to content

Commit

Permalink
chore(ot): Remove custom scope manager support
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer committed Jan 8, 2025
1 parent 54d4a6f commit 09af444
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 885 deletions.
19 changes: 7 additions & 12 deletions dd-trace-core/src/main/java/datadog/trace/core/CoreTracer.java
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ public CoreTracer build() {
singleSpanSampler,
injector,
extractor,
scopeManager,
localRootSpanTags,
defaultSpanTags,
serviceNameMappings,
Expand Down Expand Up @@ -529,7 +528,6 @@ private CoreTracer(
final SingleSpanSampler singleSpanSampler,
final HttpCodec.Injector injector,
final HttpCodec.Extractor extractor,
final AgentScopeManager scopeManager,
final Map<String, ?> localRootSpanTags,
final Map<String, ?> defaultSpanTags,
final Map<String, String> serviceNameMappings,
Expand Down Expand Up @@ -632,16 +630,13 @@ private CoreTracer(
: Monitoring.DISABLED;

traceWriteTimer = performanceMonitoring.newThreadLocalTimer("trace.write");
if (scopeManager == null) {
this.scopeManager =
new ContinuableScopeManager(
config.getScopeDepthLimit(),
config.isScopeStrictMode(),
profilingContextIntegration,
healthMetrics);
} else {
this.scopeManager = scopeManager;
}

scopeManager =
new ContinuableScopeManager(
config.getScopeDepthLimit(),
config.isScopeStrictMode(),
profilingContextIntegration,
healthMetrics);

externalAgentLauncher = new ExternalAgentLauncher(config);

Expand Down

This file was deleted.

Loading

0 comments on commit 09af444

Please sign in to comment.