feat(docs): added Sentry integration (#DS-3688) - #1849
Draft
artembelik wants to merge 1 commit into
Draft
Conversation
|
Visit the preview URL for this PR (updated for commit 062d15f): https://koobiq-next--prs-1849-ck3te6kz.web.app (expires Sat, 08 Aug 2026 15:01:44 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces Sentry to the koobiq-docs application, splitting the browser entrypoint to initialize Sentry before bootstrapping and adding CLI scripts to upload/clean source maps for releases.
Changes:
- Add
@sentry/angularand@sentry/clidependencies, plus docs scripts for sourcemap injection/upload and.mapcleanup. - Replace the docs browser entry (
main.ts) withmain.browser.tsthat initializes Sentry and bootstraps with a browser-specificApplicationConfig. - Update Angular/TS config to point the docs “browser” build target at
main.browser.ts.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Adds Sentry SDK + CLI transitive dependencies to the lockfile. |
| package.json | Adds @sentry/angular, @sentry/cli, and docs sourcemap upload/cleanup scripts. |
| apps/docs/tsconfig.app.json | Switches the compiled browser entry file to src/main.browser.ts. |
| apps/docs/src/main.ts | Removes the old single browser entrypoint. |
| apps/docs/src/main.browser.ts | Initializes Sentry and bootstraps the docs app in the browser. |
| apps/docs/src/config.browser.ts | Adds Sentry ErrorHandler via a browser-specific merged ApplicationConfig. |
| angular.json | Updates the docs build target to use apps/docs/src/main.browser.ts as the browser entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+8
to
+9
| dsn: 'https://0df1a826e548070a1d125e041280042e@o4511661289635840.ingest.de.sentry.io/4511858149621840', | ||
| enabled: !isDevMode(), |
Comment on lines
+10
to
+20
| dataCollection: { | ||
| userInfo: false, | ||
| cookies: false, | ||
| httpHeaders: { | ||
| request: false, | ||
| response: false | ||
| }, | ||
| httpBodies: [], | ||
| urlQueryParams: false, | ||
| stackFrameVariables: false | ||
| }, |
Comment on lines
+187
to
+188
| "docs:sentry-upload": "sentry-cli sourcemaps inject dist/releases/koobiq-docs/browser && sentry-cli sourcemaps upload --org koobiq --project koobiq-docs --validate --wait-for 60 dist/releases/koobiq-docs/browser", | ||
| "docs:sentry-clean": "rimraf --glob 'dist/releases/koobiq-docs/browser/**/*.map'", |
artembelik
marked this pull request as draft
August 5, 2026 16:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.