Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbuks committed Aug 15, 2024
1 parent dd8d415 commit 422663a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/channels/src/utils/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ interface Args {
}

// Webpack global var
declare const GIT_RELEASE: string;
declare const SENTRY_PERFORMANCE_SAMPLE_RATE: number;
declare const GIT_RELEASE: ReturnType<JSON['stringify']>;
declare const SENTRY_PERFORMANCE_SAMPLE_RATE: ReturnType<JSON['stringify']>;

const isLocalhost = (host: string) => host.startsWith('localhost') || host.startsWith('infomaniak.local.') || host.startsWith('kchat.local.') || host.startsWith('local.') || host.startsWith('kchat.devd');
const isCanaryOrPreprod = GIT_RELEASE.includes('-next') || GIT_RELEASE.includes('-rc');
Expand Down Expand Up @@ -41,7 +41,7 @@ export default function init({SENTRY_DSN}: Args) {
isCanaryOrPreprod && new Sentry.BrowserTracing(),
isCanaryOrPreprod && new Sentry.Replay(),
].filter(bool),
tracesSampleRate: SENTRY_PERFORMANCE_SAMPLE_RATE,
tracesSampleRate: parseFloat(SENTRY_PERFORMANCE_SAMPLE_RATE),
ignoreErrors: [

// Ignore random plugins/extensions
Expand Down

0 comments on commit 422663a

Please sign in to comment.