-
Notifications
You must be signed in to change notification settings - Fork 146
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
Deprecate browser footer injection APIs;header injection now adds both scripts #1679
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1679 +/- ##
============================================
- Coverage 70.71% 70.70% -0.01%
+ Complexity 9953 9935 -18
============================================
Files 828 828
Lines 39940 39877 -63
Branches 6032 6030 -2
============================================
- Hits 28243 28195 -48
+ Misses 8978 8962 -16
- Partials 2719 2720 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the methods that are now noops, should we also update the Javadoc comments to call this out - and perhaps reference the header-only method that essentially replaces it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The javadoc in PublicApi.java
contains the information regarding the deprecation/replacements of the footer related methods.
* * SPDX-License-Identifier: Apache-2.0 | ||
* | ||
*/ | ||
|
||
package com.newrelic.agent.browser; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copyright was lost.
Overview
Resolves #1657
This change deprecates the browser footer API (
getBrowserTimingFooter
) and changes the behavior of the browser header API/instrumentation ('getBrowserTimingHeader) to now include both scripts in the
` element.Calling the browser footer API returns an empty string.
Testing
The agent includes a suite of tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here,
Checks