feat(powerbi): report errors to Sentry#846
Conversation
PR Reviewer Guide 🔍(Review updated until commit 2dc69ac)Here are some key observations to aid the review process:
|
There was a problem hiding this comment.
Pull request overview
This PR adds Sentry-based error reporting to the PowerBI edge app so embed/token failures and PowerBI runtime errors are captured centrally.
Changes:
- Initialize Sentry in the app entrypoint and attach basic app context.
- Report token refresh failures (deduped to the first failure in a streak), embed-token fetch failures, and PowerBI embed error events to Sentry.
- Update unit tests to verify Sentry reporting behavior and adjust Screenly settings typing/deps.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| edge-apps/powerbi/src/services.ts | Reports token-refresh, embed-token, and PowerBI embed errors via reportError. |
| edge-apps/powerbi/src/services.test.ts | Mocks Sentry utilities and adds assertions for new reporting behavior. |
| edge-apps/powerbi/src/main.ts | Calls setupSentry('powerbi', …) during startup. |
| edge-apps/powerbi/src/globals.d.ts | Switches to module augmentation of @screenly/edge-apps settings typing. |
| edge-apps/powerbi/screenly.yml | Adds a sentry_dsn setting to configure Sentry reporting. |
| edge-apps/powerbi/screenly_qc.yml | Adds the same sentry_dsn setting for QC manifest. |
| edge-apps/powerbi/package.json | Moves @screenly/edge-apps into runtime dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PR Code Suggestions ✨Latest suggestions up to 2dc69ac
Previous suggestionsSuggestions up to commit d9dbac0
|
|
Persistent review updated to latest commit 2dc69ac |
PR Type
Enhancement, Tests
Description
Add Power BI Sentry reporting
Report token and embed failures
Configure optional global Sentry DSN
Cover reporting paths in tests
Diagram Walkthrough
File Walkthrough
3 files
Extend Screenly settings module typesInitialize Sentry during app startupReport Power BI failures to Sentry1 files
Add Sentry reporting unit coverage1 files
Promote edge-apps dependency version2 files
Add optional Sentry DSN settingAdd QC Sentry DSN setting