Skip to content

Commit

Permalink
Delay starting trace-writer and data-stream-monitoring until remote I…
Browse files Browse the repository at this point in the history
…/O is allowed
  • Loading branch information
mcculls committed Dec 28, 2024
1 parent 84d2b6d commit 9b97d7a
Showing 1 changed file with 3 additions and 2 deletions.
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 comments on commit 9b97d7a

Please sign in to comment.