Files
web/apps/redis-api/src/server/sentry.server.config.ts
Joakim Jäderberg 2acc17219a Merged in feature/SW-2538-redis-api-sentry (pull request #1973)
Feature/SW-2538 redis api sentry

* Add fingerprint to be able to differentiate JSON.parse errors
* update deploy script
* use status over deprecated error function in elysia
* use t3-env createFinalSchema for extra validation

Approved-by: Anton Gunnarsson
2025-05-06 11:29:37 +00:00

12 lines
290 B
TypeScript

import "@sentry/tracing";
import { env } from "@/env";
import * as Sentry from "@sentry/bun";
Sentry.init({
dsn: env.SENTRY_DSN,
enabled: env.SENTRY_ENABLED,
environment: env.SENTRY_ENVIRONMENT,
tracesSampleRate: env.SENTRY_TRACE_SAMPLE_RATE,
release: env.VERSION,
});