diff --git a/deploy/values/review/values.yaml.gotmpl b/deploy/values/review/values.yaml.gotmpl index 515b3ad124..b720f05d2b 100644 --- a/deploy/values/review/values.yaml.gotmpl +++ b/deploy/values/review/values.yaml.gotmpl @@ -74,7 +74,6 @@ frontend: OTEL_SDK_ENABLED: true OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger-collector.jaeger.svc.cluster.local:4318 NEXT_OTEL_VERBOSE: 1 - NEXT_PUBLIC_SENTRY_ENABLE_TRACING: true envFromSecret: NEXT_PUBLIC_SENTRY_DSN: ref+vault://deployment-values/blockscout/dev/review?token_env=VAULT_TOKEN&address=https://vault.k8s.blockscout.com#/NEXT_PUBLIC_SENTRY_DSN SENTRY_CSP_REPORT_URI: ref+vault://deployment-values/blockscout/dev/review?token_env=VAULT_TOKEN&address=https://vault.k8s.blockscout.com#/SENTRY_CSP_REPORT_URI diff --git a/lib/sentry/config.ts b/lib/sentry/config.ts index c88fa9972b..9a6055d773 100644 --- a/lib/sentry/config.ts +++ b/lib/sentry/config.ts @@ -11,12 +11,13 @@ export const config: Sentry.BrowserOptions | undefined = (() => { } const tracesSampleRate: number | undefined = (() => { - if (feature.environment === 'staging' || feature.environment === 'development') { - return 1; - } - - if (feature.environment === 'production') { - return 0.2; + switch (feature.environment) { + case 'development': + return 1; + case 'staging': + return 0.75; + case 'production': + return 0.2; } })();