diff --git a/site/content/docs/traces-open-telemetry/instrumenting-code/nextjs.md b/site/content/docs/traces-open-telemetry/instrumenting-code/nextjs.md index 5b8eda523..965cfb663 100644 --- a/site/content/docs/traces-open-telemetry/instrumenting-code/nextjs.md +++ b/site/content/docs/traces-open-telemetry/instrumenting-code/nextjs.md @@ -48,7 +48,8 @@ const nextConfig = { module.exports = nextConfig ``` -Create a file called `instrumentation.ts` at the root of your project and add the following code: +Create an `instrumentation.ts` file in the root of your project, or, place in the `src` directory if you are using one. +And add the following code: ```ts {title="instrumentation.ts"} import { registerOTel } from '@vercel/otel'