Commit 32896734 authored by tom's avatar tom

[skip ci] adjust sample rate for env

parent 922f55b2
...@@ -74,7 +74,6 @@ frontend: ...@@ -74,7 +74,6 @@ frontend:
OTEL_SDK_ENABLED: true OTEL_SDK_ENABLED: true
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger-collector.jaeger.svc.cluster.local:4318 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger-collector.jaeger.svc.cluster.local:4318
NEXT_OTEL_VERBOSE: 1 NEXT_OTEL_VERBOSE: 1
NEXT_PUBLIC_SENTRY_ENABLE_TRACING: true
envFromSecret: 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 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 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
......
...@@ -11,12 +11,13 @@ export const config: Sentry.BrowserOptions | undefined = (() => { ...@@ -11,12 +11,13 @@ export const config: Sentry.BrowserOptions | undefined = (() => {
} }
const tracesSampleRate: number | undefined = (() => { const tracesSampleRate: number | undefined = (() => {
if (feature.environment === 'staging' || feature.environment === 'development') { switch (feature.environment) {
return 1; case 'development':
} return 1;
case 'staging':
if (feature.environment === 'production') { return 0.75;
return 0.2; case 'production':
return 0.2;
} }
})(); })();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment