SDK & Integrations
Install the SDK and start capturing errors in minutes.
PLATFORM
1.Install the SDK
npm install bugtrac-sdk
works with Node.js 14+
2.Initialize the SDK
import ErrorTracker from '@your-org/error-tracker';
ErrorTracker.init({
apiKey: "pk_live_************",
environment: "production"
});3.Capture Errors
Automatic error capture
The SDK automatically captures unhandled error and exceptions.
Manual capture
try{
riskyfunction();
} catch(err) {
ErrorTracker.captureError(err);
}works with Node.js 14+