Skip to content

Conversation

@antonis
Copy link
Collaborator

@antonis antonis commented Dec 17, 2025

⚠️ Based on: #112

Fixes #109

This PR adds logging throughout the application using Sentry's new logs feature.

Types of Logs Added

1. Application Lifecycle Logs

  • App initialization with customer type, email, and version
  • Navigation container ready events

2. Screen View Logs

  • Home screen viewed
  • Product detail viewed (with product ID, title, price)
  • Cart screen viewed (with item count, total items, total value)

3. User Action Logs

  • Product Interactions:

    • Product card pressed (with product details)
    • Products loaded (with product count)
    • Product detail viewed
  • Cart Operations:

    • Items added to cart (from product cards and detail screens)
    • Items removed from cart
    • Cart calculations ("Calculated itemsInCart: X")
    • Quantity updates ("Adding quantity: X")
    • Cart total calculations
  • Checkout Flow:

    • Checkout initiated
    • Checkout span with trace/span IDs and attributes
    • Checkout called with cart (detailed cart contents)
    • Checkout request sent
    • Checkout completed successfully
    • Checkout failures with error details

4. Navigation Logs

  • Navigation to checkout
  • Navigation container ready

5. Error & Debug Logs

  • Product loading errors (with endpoint and error details)
  • Checkout request failures (with error messages)
  • Checkout failures (with status codes and error messages)
  • API call debug logs (with endpoints and request details)

6. User Feedback Logs

  • User feedback modal opened
  • User feedback submitted (with event ID and message length)

@antonis antonis requested review from alwx and dachakra and removed request for cstavitsky and thinkocapo December 17, 2025 13:35
@antonis antonis marked this pull request as draft December 17, 2025 13:36
@antonis antonis linked an issue Dec 17, 2025 that may be closed by this pull request
@antonis antonis marked this pull request as ready for review December 17, 2025 14:36
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.

Add More Logs

1 participant