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

next.js #114

Open
feelform opened this issue Mar 22, 2022 · 3 comments
Open

next.js #114

feelform opened this issue Mar 22, 2022 · 3 comments
Milestone

Comments

@feelform
Copy link
Collaborator

No description provided.

@feelform feelform added this to the 0.10.0 milestone Mar 22, 2022
@Jungley8
Copy link

+1

@clockk
Copy link

clockk commented Nov 16, 2023

We confirmed that it is currently tracking properly in the Next.js page directory.
What does Next.js do?

@kode15333
Copy link

kode15333 commented Aug 12, 2024

i think some people faced same issue like me

if you want to set up Pinpoint-Node-Agent,

you should check next.config.js instrumentationHook option

and you just implement pinpoint code at instrumentation.js

// next.config.js
{
   experimental: {
    instrumentationHook: true,
  },
}
// instrumentation.js
export async function register () {
 if(process.env.NEXT_RUNTIME === "nodejs"){
  const Agent = await require("pinpoint-node-agent/lib/agent")
  
  new Agent({
   ...your config
   })
 }
}

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

No branches or pull requests

4 participants