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

fix: Fixed instrumentation of Fastify via ESM #2158

Closed
wants to merge 7 commits into from

Conversation

jsumners-nr
Copy link
Contributor

This resolves #2155.

@jsumners-nr jsumners-nr marked this pull request as ready for review April 23, 2024 17:12
@jsumners-nr jsumners-nr marked this pull request as draft April 23, 2024 17:34
@jsumners-nr jsumners-nr marked this pull request as ready for review April 23, 2024 19:32
@bizob2828 bizob2828 self-assigned this Apr 23, 2024
Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the tests to main of agent and they still pass. I'm not sure this reproduces the issue

@jsumners-nr
Copy link
Contributor Author

I copied the tests to main of agent and they still pass. I'm not sure this reproduces the issue

It did reproduce it. But now it's not and I'm very confused.

Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok we talked IRL. I don't think this is the best place for this fix. I traced this back to #1894 as the regression. I think the fix should be here. That way we won't have code scattered that checks the nrEsmProxy symbol. Keep in mind and it'll be obvious because we test pg in esm but there's code in pg instrumentation that checks this symbol as well

@jsumners-nr
Copy link
Contributor Author

This'll be my priority on 2024-04-25. Too late in the day to get into complicated work like this.

Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Apr 29, 2024
@jsumners-nr jsumners-nr deleted the issue-2155 branch April 29, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Node.js Engineering Board
  
Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

Newrelic + Fastify: Function.prototype.apply was called on #<Object>, which is an object and not a function
2 participants