17 lines
515 B
TypeScript
17 lines
515 B
TypeScript
import { BackendVariables } from "@Common/config/variables/Variables";
|
|
import * as Sentry from "@sentry/node";
|
|
import Container from "typedi";
|
|
|
|
const variables = Container.get(BackendVariables);
|
|
|
|
Sentry.init({
|
|
dsn: "https://d4c51d58de2447f0db61730eb6f6185f@o4507265384972288.ingest.de.sentry.io/4507265396244560",
|
|
|
|
// We recommend adjusting this value in production, or using tracesSampler
|
|
// for finer control
|
|
tracesSampleRate: 1.0,
|
|
environment: variables.ENV,
|
|
});
|
|
|
|
Sentry.setTag("service", "lecoffre-back");
|