[Feature] Add centralized Sentry logger for main/renderer with PII scrubbing - #617
Closed
Power-Maverick with Copilot wants to merge 1 commit into
Closed
[Feature] Add centralized Sentry logger for main/renderer with PII scrubbing#617Power-Maverick with Copilot wants to merge 1 commit into
Power-Maverick with Copilot wants to merge 1 commit into
Conversation
Copilot
AI
changed the title
[WIP] Implement centralized logging using Sentry for Electron
[Feature] Add centralized Sentry logger for main/renderer with PII scrubbing
Aug 5, 2026
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.
Summary
Introduces a centralized app-level logging foundation using Sentry across Electron main and renderer, replacing fragmented ad-hoc logging paths with a consistent warning/error pipeline. The implementation is structured to support app-owned log visibility and future tool-level routing without embedding log UI logic inside individual tools.
Type of change
Changes
Central logger module
Sentry initialization in both processes
PII scrubbing and payload hardening
Unhandled error capture
Code path alignment
Forward path for centralized app log UX
Architecture checklist
Packages (
types&validation)packages/If you did change a package:
@pptb/types(types): type definitions updated and version bumped inpackages/types/package.json@pptb/validate(validation): validation rules updated and version bumped inpackages/validation/package.jsonCode quality
pnpm run typecheckpasses with 0 errors (warnings are acceptable)pnpm run lintpasses with 0 errors (warnings are acceptable)pnpm run buildcompletes successfullyTesting
pnpm run test:unitpasses (for changes tosrc/main/,src/common/, orsrc/renderer/utilities)pnpm run test:e2epasses (for UI / navigation / end-to-end flows)pnpm run dev)Scenario tested:
Verified main and renderer warning/error paths route through centralized logger; validated global unhandled exception/rejection capture; confirmed scrubbing hook runs before send and no info/debug noise is emitted.
Screenshots / recordings
N/A (foundational telemetry/logging infrastructure change; no direct UI delta in this PR).
Breaking changes
Reviewer notes