Step 2: Install the SDK
One command:
npm install pingoni
Enter fullscreen mode
Exit fullscreen mode
That's the entire install. No native dependencies, no agent to configure, no separate config file.
Step 3: Add the middleware
Two lines change in your app.js . Require the package at the top, then mount the middleware before your routes:
const express = require ( " express " ); const pingoni = require ( " pingoni " ); const app = express ();
app . use ( express . json ()); app . use ( pingoni ( process . env . PINGONI_API_KEY )); // ← add this
app . get ( " / " , ( req , res ) => { res . json ({ status : " ok " }); });
// ... rest of your routes
Enter fullscreen mode
Exit fullscreen mode
That's it. Every request to your app will now be captured: method, path, status code, response time, timestamp.…