Javascript Telex APM is a lightweight JavaScript package designed to capture and report runtime errors in your web applications. This package simplifies error monitoring by collecting error details and sending them to your specified endpoint or logging them locally for debugging purposes.
- Capture JavaScript Errors: Automatically listen for global errors and unhandled promise rejections.
- Custom Error Reporting: Configure your own reporting endpoint.
- Contextual Information: Collect error stack traces, browser details, and timestamps.
- Lightweight: Minimal impact on performance.
- Node.js and npm/yarn:
- To install the package in your Laravel project, follow these steps:
- Run the following command in your project root directory:
npm install telex-js-apm
# OR
yarn add telex-js-apm
- Install via importing jsdelivr CDN.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/error-monitor.js"></script>
- Import and initialize the error monitor in your application base layout:
new ErrorMonitor({
api_url: 'your_api_url',
app_name: 'your_appname',
});
- If api_url is specified, the package sends a POST request with the following JSON payload:
{
"message": "Formatted error message",
"event_name": "Error type",
"username": "your_app_name",
"status": "error",
}
To contribute or modify the package:
git clone https://github.com/organization_name/telex-js-apm
cd telex-js-apm
Install dependencies using Composer:
npm install
npm run build
Visit here
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
If you encounter any issues, please feel free to open an issue on GitHub.
This package is open-source software licensed under the MIT license.
For more information or support, please reach out to:
- Email: [email protected]
- GitHub: Ganiu Jamiu