fix: sentry init is using the wrong environment (#4940)
In the previous PR #4912 it seems that I forgot to pass the environment on the backend. Here is a quick fix! I also added some "doc" in the the .env.example
This commit is contained in:
@ -14,6 +14,7 @@ export class ExceptionHandlerSentryDriver
|
||||
{
|
||||
constructor(options: ExceptionHandlerSentryDriverFactoryOptions['options']) {
|
||||
Sentry.init({
|
||||
environment: options.environment,
|
||||
release: options.release,
|
||||
dsn: options.dsn,
|
||||
integrations: [
|
||||
@ -25,7 +26,6 @@ export class ExceptionHandlerSentryDriver
|
||||
],
|
||||
tracesSampleRate: 0.1,
|
||||
profilesSampleRate: 0.3,
|
||||
environment: options.debug ? 'development' : 'production',
|
||||
debug: options.debug,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user