Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
fix: rename sentry config property from DNS to DSN
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwwinter committed Feb 29, 2024
1 parent 076a5b3 commit ad1c2de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ SENTRY:
ENABLED: false
INSTANCE_NAME: local-development # can be personalised in .env -> local-development-<your-name>
ENVIRONMENT: local # local | development | production
DNS: ''
DSN: ''
6 changes: 3 additions & 3 deletions src/sentry.configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BaseExceptionFilter, HttpAdapterHost } from '@nestjs/core';

export class SentryConfiguration {
ENABLED = '';
DNS = '';
DSN = '';
INSTANCE_NAME = '';
ENVIRONMENT = '';
}
Expand All @@ -15,7 +15,7 @@ function loadSentryConfiguration(
): SentryConfiguration {
return {
ENABLED: configService.getOrThrow('SENTRY_ENABLED'),
DNS: configService.getOrThrow('SENTRY_DNS'),
DSN: configService.getOrThrow('SENTRY_DSN'),
INSTANCE_NAME: configService.getOrThrow('SENTRY_INSTANCE_NAME'),
ENVIRONMENT: configService.getOrThrow('SENTRY_ENVIRONMENT'),
};
Expand Down Expand Up @@ -46,7 +46,7 @@ function configureLoggingSentry(
debug: true,
serverName: sentryConfiguration.INSTANCE_NAME,
environment: sentryConfiguration.ENVIRONMENT,
dsn: sentryConfiguration.DNS,
dsn: sentryConfiguration.DSN,
integrations: [
// enable HTTP calls tracing
new Sentry.Integrations.Console(),
Expand Down

0 comments on commit ad1c2de

Please sign in to comment.