3.1.3 • Published 5 years ago

monitoring-error-handler v3.1.3

Weekly downloads
184
License
MIT
Repository
-
Last release
5 years ago

Build Status npm MIT license

Monitoring Error Handler

Usage

First, install client

npm i -S monitoring-error-handler

Initialize client with Application Insights instrumentation key

import { MonitoringErrorHandler } from 'monitoring-error-handler';

MonitoringErrorHandler.instance.initialize({
  applicationInsights: {
    instrumentationKey: 'YOUR-INSTRUMENTATION-KEY',
    applicationName: 'applicationName',
  },
  sentry: {
    dsn: 'YOUR-SENTRY-DSN',
    environment: 'YOUR-SENTRY-ENV',
  },
});

Start tracking your exceptions

try {
  doSomething();
} catch (exception) {
  MonitoringErrorHandler.instance.trackException({ exception });
}
3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

0.0.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago