blob: 119e2056a4a1940e8d5156d3fec9d5dba4515d09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { RewriteFrames } from '@sentry/integrations';
import * as SentryNode from '@sentry/node';
import config from './../../config/options.js';
export class Sentry {
public constructor(rootdir: string) {
SentryNode.init({
dsn: config.credentials.sentryDsn,
environment: config.environment,
tracesSampleRate: 1.0,
integrations: [
new RewriteFrames({
root: rootdir
})
]
});
}
}
|