-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[TT-13766] Bump newrelic dependency #6809
base: master
Are you sure you want to change the base?
Conversation
API Changes --- prev.txt 2024-12-23 15:17:56.930313340 +0000
+++ current.txt 2024-12-23 15:17:52.217320866 +0000
@@ -7669,7 +7669,7 @@
ErrEmptyUserIDInSubClaim = errors.New("found an empty user ID in sub claim")
)
var (
- NewRelicApplication newrelic.Application
+ NewRelicApplication *newrelic.Application
ErrSyncResourceNotKnown = errors.New("unknown resource to sync")
)
@@ -7707,9 +7707,6 @@
FUNCTIONS
func APILoopingName(name string) string
-func AddNewRelicInstrumentation(app newrelic.Application, r *mux.Router)
- AddNewRelicInstrumentation adds NewRelic instrumentation to the router
-
func AuthFailed(m TykMiddleware, r *http.Request, token string)
TODO: move this method to base middleware?
@@ -8696,8 +8693,8 @@
SetPoliciesByID will update the internal policiesByID map with new policies.
The key used will be the policy ID.
-func (gw *Gateway) SetupNewRelic() (app newrelic.Application)
- SetupNewRelic creates new newrelic.Application instance
+func (gw *Gateway) SetupNewRelic() (app *newrelic.Application)
+ SetupNewRelic creates new newrelic.Application instance.
func (gw *Gateway) SignatureVerifier() (goverify.Verifier, error)
SignatureVerifier returns a verifier to use for validating signatures. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Quality Gate failedFailed conditions |
User description
TT-13766
This PR bumps the dependency with supposedly minimal changes, following the extensive upgrading guide.
Needs an e2e test with newrelic (see ticket).
https://tyktech.atlassian.net/browse/TT-13766
PR Type
Enhancement, Dependencies
Description
internal/service/newrelic
package for centralized New Relic functionality.gateway/newrelic.go
file and its outdated implementation.go.mod
andgo.sum
to include the new New Relic v3 library andnrgorilla
integration.Changes walkthrough 📝
middleware.go
Refactor middleware to use updated New Relic context-based API
gateway/middleware.go
newrelic.Transaction
with a new context-basedapproach using
newrelic.Context
.StartSegment
method from theupdated New Relic library.
service/newrelic
package.newrelic.go
Remove old New Relic setup and instrumentation logic
gateway/newrelic.go
internal/service/newrelic
package.proxy_muxer.go
Update proxy muxer to use new New Relic context handling
gateway/proxy_muxer.go
newrelic.Context
forsetting and retrieving transactions.
service/newrelic
package.server.go
Refactor server New Relic setup to use updated library
gateway/server.go
SetupNewRelic
to use the updated New Relic library andconfiguration options.
NewRelicApplication
variable to use the new*newrelic.Application
type.service/newrelic
package for New Relicfunctionality.
newrelic.go
Add new service package for New Relic integration
internal/service/newrelic/newrelic.go
Relic.
go.mod
Update dependencies for New Relic v3 and integrations
go.mod
nrgorilla
integration for New Relic.go.sum
Update dependency checksums for New Relic v3
go.sum
nrgorilla
dependencies.