Skip to content

fix: Send loaded modules on agent reconnect#3534

Merged
nr-ahemsath merged 5 commits intomainfrom
fix/sent-loaded-modules-on-reconnect
Apr 14, 2026
Merged

fix: Send loaded modules on agent reconnect#3534
nr-ahemsath merged 5 commits intomainfrom
fix/sent-loaded-modules-on-reconnect

Conversation

@nr-ahemsath
Copy link
Copy Markdown
Member

Description

The agent spec for the update_loaded_modules endpoint requires the agent to resend the entire list of loaded modules if the agent reconnects. We weren't doing that; this fixes it. In addition to the unit test, I verified this manually by triggering an agent reconnect by changing the log level of a running agent from INFO to DEBUG and verified that, after the reconnect, the entire list of loaded modules was sent to New Relic.

Author Checklist

  • Unit tests, Integration tests, and Unbounded tests completed
  • Performance testing completed with satisfactory results (if required)

Reviewer Checklist

  • Perform code review
  • Pull request was adequately tested (new/existing tests, performance tests)

@nr-ahemsath nr-ahemsath requested a review from a team as a code owner April 13, 2026 18:35
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.81%. Comparing base (597e65b) to head (5f62101).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3534      +/-   ##
==========================================
+ Coverage   81.79%   81.81%   +0.01%     
==========================================
  Files         508      508              
  Lines       34369    34383      +14     
  Branches     4067     4067              
==========================================
+ Hits        28112    28130      +18     
+ Misses       5288     5284       -4     
  Partials      969      969              
Flag Coverage Δ
Agent 82.80% <100.00%> (+0.02%) ⬆️
Profiler 71.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...gent/Core/Utilities/UpdatedLoadedModulesService.cs 93.47% <100.00%> (+2.56%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nr-ahemsath nr-ahemsath merged commit ecaa550 into main Apr 14, 2026
122 checks passed
@nr-ahemsath nr-ahemsath deleted the fix/sent-loaded-modules-on-reconnect branch April 14, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants