saleor-dashboard/src/services/errorTracking/index.ts
Jakub Majorek 383055a2de
SALEOR-2064 Add generic error tracker with Sentry adapter (#956)
* Add generic error tracker with Sentry extension

* Add Sentry webpack plugin

* Update variable names and README

* Update deploy-staging template

* Update changelog
2021-01-22 15:05:26 +01:00

11 lines
273 B
TypeScript

import { SentryAdapter } from "./adapters";
import { ErrorTrackerFactory } from "./trackerFactory";
const errorTracker = ErrorTrackerFactory(
SentryAdapter({
dsn: process.env.SENTRY_DSN,
environment: process.env.ENVIRONMENT
})
);
export default errorTracker;