1.0.0 • Published 9 months ago

drcode-node v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

const config = { publicKey: 'yourPublicKey', projectId: 'yourProjectId', tracesSampleRate: 1.0, // optional profilesSampleRate: 1.0 // optional };

// Initialize drcode-node initDrcode(config);

// Express.js example for setting up error handler const app = express();

app.use(setUpErrorHandler);

app.listen(3000, () => { console.log('Server is running on port 3000'); });

publicKey: string; projectId: string; tracesSampleRate?: number; profilesSampleRate?: number; }

export function initDrcode(config: DrCodeConfig): void;

export function setUpErrorHandler( err: Error, req: any, res: any, next: any ): void;