-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: Expose MicroLoader in the npm package #589
Conversation
Codecov Report
@@ Coverage Diff @@
## main #589 +/- ##
==========================================
- Coverage 67.00% 66.79% -0.21%
==========================================
Files 131 131
Lines 5988 6017 +29
Branches 1104 1120 +16
==========================================
+ Hits 4012 4019 +7
- Misses 1609 1623 +14
- Partials 367 375 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Co-authored-by: Ben Field <[email protected]>
Co-authored-by: Ben Field <[email protected]>
The npm package now exposes an entry-point called
MicroLoader
, which may be used to instantiate multiple agents on one page. This loader type, which is smaller than the Lite loader, captures a distinctPageView
event per instance but does not auto-instrument the page. Instead, manual API calls may be used to captureJavaScriptError
andPageAction
events via thenoticeError
andaddPageAction
methods.Overview
This PR finalizes and exposes the Micro Agent entry point in the npm interface.
Related Issue(s)
NEWRELIC-9401
Testing
A smoke test (wdio) has been added that validates that the loader can be instantiated multiple times on one page and report to distinct application configurations.
Other
README.md has been updated with example usage of the
MicroAgent
entry point.