8000 Defer remote components to avoid OkHttp class-loading side-effects by mcculls · Pull Request #8131 · DataDog/dd-trace-java · GitHub
[go: up one dir, main page]

Skip to content

Defer remote components to avoid OkHttp class-loading side-effects #8131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 30, 2024
Prev Previous commit
Next Next commit
Delay starting trace-writer and data-stream-monitoring until remote I…
…/O is allowed
  • Loading branch information
mcculls committed Dec 28, 2024
commit 9b97d7af2f827142e0d6c57952560f90659f4ff3
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ private CoreTracer(
}
pendingTraceBuffer.start();

this.writer.start();
sharedCommunicationObjects.whenReady(this.writer::start);

metricsAggregator = createMetricsAggregator(config, sharedCommunicationObjects);
// Schedule the metrics aggregator to begin reporting after a random delay of 1 to 10 seconds
Expand All @@ -705,7 +705,8 @@ private CoreTracer(
} else {
this.dataStreamsMonitoring = dataStreamsMonitoring;
}
this.dataStreamsMonitoring.start();

sharedCommunicationObjects.whenReady(this.dataStreamsMonitoring::start);

// Create default extractor from config if not provided and decorate it with DSM extractor
HttpCodec.Extractor builtExtractor =
Expand Down
0