Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
06-06-2022 08:13 PM - last edited on 06-07-2022 08:16 AM by Ryan.Paredez
Hi,
Has anyone tried using the node.js agent to see if it will work with detecting the Next.js framework?
Next.js is an open-source web development framework built on top of Node.js, so don't know if it will at least partially work.
06-08-2022 04:20 PM
Hi @Michael.Lee,
I didn't see any mention of this within the Community. I did some find Support tickets on this topic. I would recommend reaching out to your AppD rep to see what they can find out.
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
06-24-2022 07:17 AM
Hi. Any update on that?
06-28-2022 09:23 AM
Hi @Michael.Lee,
I see you created a support ticket for this question. Can you share your learnings with @Kiryl.Kaliada?
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
06-30-2022 10:27 AM
Hi @Kiryl.Kaliada,
Here is what was shared via Support
Yes, Next.js application can be instrumented with Node.js Agent, but only if the runtime is Node.js, meaning application having node.js backend. Single page applications or frontend applications not running on Node.js cannot be instrumented with Node.js agent.
Next steps:
Steps to instrument:
Using below steps appdynamics will be installed outside application folder.
mkdir /opt/appdynamics
npm init -y
npm install appdynamics@latest
require("appdynamics").profile({
debug: true,
controllerHostName: '<controller-host-name>',
controllerPort: 443,
controllerSslEnabled: true, // Set to true if controllerPort is SSL
accountName: 'xyz',
accountAccessKey: 'xyz', //required
applicationName: '323460-axios-nextjs',
tierName: 't1',
nodeName: 'n1',
logging: {
'logfiles': [
{
'root_directory': '/tmp/appd',
'filename': 'echo_%N.log',
'level': 'TRACE',
'max_size': 5242880,
'max_files': 10
}
]
}
});
export NODE_OPTIONS '--require "/opt/appdynamics/shim.js"'
Start the server and the agent will be pre-loaded with the help of env var NODE_OPTIONS
Hope that helps
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form