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

(update): replace require with import & update libs to latest versions #15

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

matewilk
Copy link
Collaborator

@matewilk matewilk commented Mar 9, 2023

No description provided.

const newrelic = require("newrelic");
// use dynamic import to avoid typescript error
// https://2ality.com/2017/01/import-operator.html
const newrelic = await import("newrelic");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This doesn't seem to be working with the current setup.

It might be because there are some left overs from a nextjs custom server and babel configs.

Copy link
Contributor

Choose a reason for hiding this comment

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

what's not working?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

all good, it was my mistake, put the comment for myself really to remember to check some things :)

@matewilk
Copy link
Collaborator Author

matewilk commented Mar 9, 2023

This PR requires more diligent testing to confirm all the New Relic features work as expected, especially Codestream & code-level metrics.

@matewilk matewilk changed the title (update): replace require with import (update): replace require with import & update libs to latest versions Mar 10, 2023
Copy link
Contributor

@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 verified all the Node.js instrumentation still functions

@matewilk matewilk merged commit 9a447df into main Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants