Skip to content

Conversation

peppescg
Copy link
Collaborator

@peppescg peppescg commented Oct 7, 2025

Enhanced Auto-Update Tracing with Sentry

Summary

Added comprehensive Sentry tracing for the entire auto-update lifecycle to improve observability, error tracking, and analytics.

Complete traced flow:

Manual update span.op

update.manual
├─ update.init 
  ├─ update.checking
  ├─ update.available
  ├─ update.downloaded
  ├─ update.user_decision
  └─ update.install 

Auto update span.op

update.init 
  ├─ update.checking
  ├─ update.available
  ├─ update.downloaded
  ├─ update.user_decision
  └─ update.install 

All phases are traced in Sentry with proper span hierarchy

@peppescg peppescg marked this pull request as ready for review October 8, 2025 14:16
@Copilot Copilot AI review requested due to automatic review settings October 8, 2025 14:16
Copy link
Contributor

@Copilot Copilot AI left a comment

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 adds comprehensive Sentry tracing infrastructure to the auto-update system to improve observability and error tracking throughout the entire update lifecycle. The changes enable detailed monitoring of both automatic and manual update flows.

  • Added Sentry span tracing for all auto-update phases (initialization, checking, downloading, installation)
  • Restructured update handlers into separate functions with proper error handling and tracing
  • Added IPC handler for manual update installation with error recovery

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
main/src/auto-update.ts Major refactoring to add comprehensive Sentry tracing throughout the auto-update lifecycle with proper span hierarchy
main/src/tests/auto-update.test.ts Added Sentry mocks for testing and updated error message assertions
main/src/main-window.ts Removed verbose logging statements
renderer/src/common/hooks/use-mcp-secrets.ts Removed test environment check for timeout delay

@peppescg peppescg self-assigned this Oct 8, 2025
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