Skip to content

feat(docs): added Sentry integration (#DS-3688) - #1849

Draft
artembelik wants to merge 1 commit into
mainfrom
feat/sentry
Draft

feat(docs): added Sentry integration (#DS-3688)#1849
artembelik wants to merge 1 commit into
mainfrom
feat/sentry

Conversation

@artembelik

Copy link
Copy Markdown
Contributor

No description provided.

@artembelik artembelik self-assigned this Aug 5, 2026
@artembelik
artembelik requested a review from lskramarov as a code owner August 5, 2026 14:57
Copilot AI lite review requested due to automatic review settings August 5, 2026 14:57
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/angular and @sentry/cli dependencies, plus docs scripts for sourcemap injection/upload and .map cleanup.
  • Replace the docs browser entry (main.ts) with main.browser.ts that initializes Sentry and bootstraps with a browser-specific ApplicationConfig.
  • 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 thread package.json
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
artembelik marked this pull request as draft August 5, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants