Set Sentry release (#2682)

This commit is contained in:
Greg Bergé
2025-01-07 16:36:44 +01:00
committed by GitHub
parent 5c87ec7c2f
commit d2bc5672e0
5 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'gitbook': patch
---
Set Sentry release
+1
View File
@@ -44,6 +44,7 @@ jobs:
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
SENTRY_RELEASE: ${{ github.sha }}
- id: deploy
name: Deploy to Cloudflare
uses: cloudflare/wrangler-action@v3.11.0
+1
View File
@@ -21,6 +21,7 @@ if (dsn) {
const client = new BrowserClient({
debug: false,
dsn,
release: process.env.SENTRY_RELEASE,
integrations: [
dedupeIntegration(),
functionToStringIntegration(),
+1
View File
@@ -5,6 +5,7 @@ if (dsn) {
init({
debug: false,
dsn,
release: process.env.SENTRY_RELEASE,
sampleRate: 0.1,
+1
View File
@@ -5,6 +5,7 @@ if (dsn) {
init({
debug: false,
dsn,
release: process.env.SENTRY_RELEASE,
sampleRate: 0.1,