This document describes how to setup and run the Next.js to test CodeStream code level metrics.
cp sample.env .env
- Fill out
NEW_RELIC_LICENSE_KEY
with your ingest license key. docker-compose up -d --build
- Visit New Relic One > APM & services > select
nextjs-code-level-metrics-demo
> Distributed Tracing. - Click the
WebTransaction/WebFrameworkUri/Nextjs/GET//blog
trace group and open a Trace. - Click Expand All.
- Click the
Nodejs/Middleware/Nextjs//middleware
,Nodejs/Nextjs/getServerSideProps//blog
, orNextjs/GET//api/blog
spans and select attributes.(You should see the relevant code.function and code.filepath attributes)