Skip to content

Commit

Permalink
Add sample rate to sentry (#601)
Browse files Browse the repository at this point in the history
* Update sentry sample rate

* Add new action for govpaas branch
  • Loading branch information
cgsunkel authored Jul 10, 2024
1 parent f4cc5e5 commit cc8263c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/update-migration-branch-from-govpaas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Update Migration Branch

on:
pull_request:
types:
- closed

permissions:
contents: write

jobs:
sync:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Git User
run: |
git config user.name "GitHub Action"
git config user.email "<EMAIL>"

- name: Update Migration Branch
run: |
git checkout govuk-paas-deploy
git fetch origin
git checkout migration-deploy
git pull
git merge origin/govuk-paas-deploy
git push origin migration-deploy
4 changes: 2 additions & 2 deletions src/app/lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ if (useSentry) {
Sentry.init({
dsn: config.sentryDsn,
integrations: [nodeProfilingIntegration()],
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
tracesSampleRate: 0.01,
profilesSampleRate: 0.01,
})
}

Expand Down

0 comments on commit cc8263c

Please sign in to comment.