Traces | Metrics | App Logs | Custom Logs | Profiling |
---|---|---|---|---|
- | - |
npm install @opentelemetry/api@">=1.3.0 <1.5.0"
next.config.js
fileInstrumentation
fileinstrumentation.ts
(or .js
) file in your project root directory (or inside src
folder, if using one), and add the following code as per your choice:
mw-agent-ns-{FIRST-5-LETTERS-OF-API-KEY}
namespace
For newer setup, we simplified the namespace name to mw-agent-ns