Skip to content
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

Simplify helper agent unloading #199

Closed
jsumners-nr opened this issue Apr 3, 2024 · 1 comment · Fixed by #203
Closed

Simplify helper agent unloading #199

jsumners-nr opened this issue Apr 3, 2024 · 1 comment · Fixed by #203
Assignees
Labels
points:1 1 day or less

Comments

@jsumners-nr
Copy link
Contributor

Once the next version of (post 11.14.0) newrelic is released we can simplify the following snippet to only use the InstrumentationTracker:

if (
Object.prototype.toString.call(shimmer.registeredInstrumentations) ===
'[object InstrumentationTracker]'
) {
shimmer.registeredInstrumentations = new InstrumentationTracker()
} else {
shimmer.registeredInstrumentations = Object.create(null)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
points:1 1 day or less
Projects
Archived in project
2 participants