-
Notifications
You must be signed in to change notification settings - Fork 56
feat: Erase .api property on agent instance #1425
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
Conversation
Asset Size Report
Merging this pull request will result in the following asset size changes:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1425 +/- ##
==========================================
+ Coverage 88.72% 88.76% +0.03%
==========================================
Files 170 170
Lines 7444 7439 -5
Branches 1512 1509 -3
==========================================
- Hits 6605 6603 -2
+ Misses 731 727 -4
- Partials 108 109 +1
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:
|
The
.api
property of full and micro agents have been removed. The browser API methods are instead moved to the agent instance itself for ease of targeted access. This includes a minor fix of runtimeloaderType
for agents that are re-configured after load.Overview
Instead of:
The API will now be:
mainOrMicroAgent.api.___
will still work as it will redirect up a level and callmainOrMicroAgent.___
.Related Issue(s)
https://new-relic.atlassian.net/browse/NR-172955
Testing