Tutorial
Monitoring Your App with Performance Monitor
You can't improve what you can't measure. Performance Monitor gives you the instrumentation to understand where your application spends time.
Install the SDK
npm install @nexatech/monitor
# or
pip install nexatech-monitor
Initialize
import { Monitor } from '@nexatech/monitor';
Monitor.init({
dsn: process.env.NEXATECH_MONITOR_DSN,
tracing: true,
sampleRate: 0.1, // trace 10% of requests
});
Custom spans
const span = Monitor.startSpan('db.query', { table: 'users' });
const result = await db.query('SELECT ...');
span.finish();
Alerts
Set a p95 latency alert in 30 seconds through the dashboard: Navigate to Alerts → New Alert → Latency p95 → threshold 500ms → Slack notification.