Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
32896734
Commit
32896734
authored
Nov 23, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] adjust sample rate for env
parent
922f55b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
values.yaml.gotmpl
deploy/values/review/values.yaml.gotmpl
+0
-1
config.ts
lib/sentry/config.ts
+7
-6
No files found.
deploy/values/review/values.yaml.gotmpl
View file @
32896734
...
...
@@ -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
...
...
lib/sentry/config.ts
View file @
32896734
...
...
@@ -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
;
}
})();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment