-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add electron frontend setup documentation #8830
Comments
To add Electron frontend setup documentation, follow these steps:
---
title: Electron
slug: electron
createdAt: 2023-10-01T00:00:00.000Z
updatedAt: 2023-10-01T00:00:00.000Z
---
## Getting Started with Electron
To integrate Highlight.io with your Electron application, follow these steps:
### Install the SDK
```bash
npm install highlight.run Initialize the SDKIn your main process file (e.g., const { app } = require('electron');
const H = require('highlight.run');
app.on('ready', () => {
H.init('<YOUR_PROJECT_ID>', {
tracingOrigins: ['localhost', 'yourdomain.com'],
networkRecording: {
enabled: true,
recordHeadersAndBody: true,
},
});
}); Capture ErrorsTo capture errors in your Electron app, use the following code: process.on('uncaughtException', (error) => {
H.captureException(error);
});
process.on('unhandledRejection', (reason, promise) => {
H.captureException(reason);
}); Additional ConfigurationRefer to the Highlight.io documentation for more configuration options and advanced usage.
References/docs-content/getting-started/3_client-sdk |
No description provided.
The text was updated successfully, but these errors were encountered: