Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Sentry release #2682

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Set Sentry release
  • Loading branch information
gregberge committed Jan 7, 2025
commit 0ab817767e47bd0f3d96b0aa5b8d30968d7be0dd
5 changes: 5 additions & 0 deletions .changeset/modern-walls-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gitbook': patch
---

Set Sentry release
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/gitbook/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ if (dsn) {
const client = new BrowserClient({
debug: false,
dsn,
release: process.env.SENTRY_RELEASE,
integrations: [
dedupeIntegration(),
functionToStringIntegration(),
Expand Down
1 change: 1 addition & 0 deletions packages/gitbook/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (dsn) {
init({
debug: false,
dsn,
release: process.env.SENTRY_RELEASE,

sampleRate: 0.1,

Expand Down
1 change: 1 addition & 0 deletions packages/gitbook/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (dsn) {
init({
debug: false,
dsn,
release: process.env.SENTRY_RELEASE,

sampleRate: 0.1,

Expand Down
Loading