feat: Added ability to delay the start of the Profiler and run for n milliseconds before shutting down.#3758
Merged
bizob2828 merged 1 commit intonewrelic:mainfrom Feb 17, 2026
Conversation
milliseconds before shutting down.
bizob2828
commented
Feb 17, 2026
| logger.trace(`${this.method} aggregator started.`) | ||
| this.profilingManager.register() | ||
| const started = this.profilingManager.start() | ||
| if (!started) { |
Member
Author
There was a problem hiding this comment.
I'm not logging any messages as the profiling manager logs a message if there are no registered profilers
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3758 +/- ##
===========================================
+ Coverage 81.79% 97.73% +15.93%
===========================================
Files 440 453 +13
Lines 57186 58600 +1414
Branches 1 1
===========================================
+ Hits 46777 57273 +10496
+ Misses 10409 1327 -9082
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
svetlanabrennan
approved these changes
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the ability to register an aggregator with a delay and duration property. This in turn will be used when registering the aggregators with the harvester class. If a delay is specified it will delay the start. If a duration is specified it will schedule the aggregator to be stopped. I also tweaked the profiling aggregator slightly to return if the profiling manager actually started any profilers before scheduling the profiling aggregator from running. This still isn't completely wired up so the unit tests only test the functionality with an aggregator in the harvester unit tests.
How to Test
Related Issues
Closes #3753