Gathering detailed insights and metrics for @micro-sentry/core
Gathering detailed insights and metrics for @micro-sentry/core
Gathering detailed insights and metrics for @micro-sentry/core
Gathering detailed insights and metrics for @micro-sentry/core
Tiny Sentry client with idiomatic wrapper for Angular
npm install @micro-sentry/core
breadcrumbs-plugin@1.1.1
Published on 23 Jul 2024
angular@7.1.1
Published on 23 Jul 2024
browser@7.1.1
Published on 23 Jul 2024
core@7.1.1
Published on 23 Jul 2024
breadcrumbs-plugin@1.1.0
Published on 05 May 2024
angular@7.1.0
Published on 05 May 2024
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
35 Stars
119 Commits
4 Forks
3 Watching
17 Branches
10 Contributors
Updated on 05 Nov 2024
Minified
Minified + Gzipped
TypeScript (98.27%)
JavaScript (1.31%)
HTML (0.35%)
Less (0.08%)
Cumulative downloads
Total Downloads
Last day
-2.7%
655
Compared to previous day
Last week
2.6%
2,983
Compared to previous week
Last month
24.1%
12,840
Compared to previous month
Last year
88.6%
137,294
Compared to previous year
1
@micro-sentry is a tiny sentry client to monitor your applications without raising your bundle size.
👜 It is small. So, it is at most 2.27 kB (gzip) in size instead of default 85.1 kB (gzip), yet it retains all the 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.
Check out all the core functionality here.
Angular:
Micro-sentry version | Angular version |
---|---|
>= 6 | >= 14 |
>= 5 | >= 13 |
>= 4 | >= 12 |
>= 3 | >= 11 |
>= 2 | >= 10 |
npm i @micro-sentry/angular
Other:
npm i @micro-sentry/browser
[!NOTE] since version @micro-sentry/browser@7 breadcrumbs-plugin is a separate package
npm i @micro-sentry/breadcrumbs-plugin
You can use provide api in standalone applications:
1import { provideMicroSentry } from '@micro-sentry/angular'; 2 3bootstrapApplication(AppComponent, { 4 providers: [ 5 provideMicroSentry({ 6 dsn: 'https://kj12kj1n23@sentry.domain.com/123', 7 }), 8 ], 9});
Or add it into app.module.ts
of your application:
1import { MicroSentryModule } from '@micro-sentry/angular'; 2 3@NgModule({ 4 imports: [ 5 // options 1: via module 6 MicroSentryModule.forRoot({ 7 dsn: 'https://kj12kj1n23@sentry.domain.com/123', 8 }), 9 ], 10 providers: [ 11 // option 2: via provide 12 provideMicroSentry({ 13 dsn: 'https://kj12kj1n23@sentry.domain.com/123', 14 }), 15 ], 16}) 17export class AppModule {}
If you do not use Angular framework, you can install @micro-sentry/browser
module to create client manually.
1const client = new BrowserMicroSentryClient({
2 dsn: 'https://kj12kj1n23@sentry.domain.com/123',
3});
4
5try {
6 // your app code
7} catch (e) {
8 client.report(e);
9}
This list encapsulates the key functionalities supported by micro-sentry, emphasizing its focus on essential error tracking and management.
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
No vulnerabilities found.
No security vulnerabilities found.