@micro-sentry is a tiny sentry client to monitor your applications without raising your bundle size.
👜 It is small. So, it is at most 1.9 KB size instead of 25 KB by default client but has all the essential functionality
🛠 It is easy to set up. There is a lightweight wrapper for Angular and a browser tool for other frameworks or vanilla.
Angular:
npm i @micro-sentry/angular
Other:
npm i @micro-sentry/browser
Just add it into app.module.ts
of your application:
import { MicroSentryModule } from '@micro-sentry/angular';
@NgModule({
imports: [
MicroSentryModule.forRoot({
dsn: 'https://kj12kj1n23@sentry.domain.com/123',
}),
],
})
export class AppModule {}
If you do not use Angular framework, you can install @micro-sentry/browser
module to create client manually.
const client = new BrowserMicroSentryClient({
dsn: 'https://kj12kj1n23@sentry.domain.com/123',
});
try {
// your app code
} catch (e) {
client.report(e);
}
Igor Katsuba |
Roman Sedov |
🆓 Feel free to use our library in your commercial and private applications
All micro-sentry packages are covered by Apache 2.0
Read more about this license here