Skip to content

Commit 8af792a

Browse files
committed
feat: enhance observability with Sentry integration and logging improvements
- Added Sentry DSNs to .env.example for error and log forwarding configuration. - Integrated Sentry logging capabilities in the logger module to capture and forward logs based on defined log levels. - Updated Header component to include a manual Sentry test button for client-side error tracking. - Enhanced worker logging to utilize the new logger, providing better insights into job processing and errors. - Updated vars.example.yml to include new Sentry logging configurations for improved observability.
1 parent 8e15a0a commit 8af792a

File tree

9 files changed

+658
-24
lines changed

9 files changed

+658
-24
lines changed

.env.example

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ VITE_POLAR_PRODUCT_CREDITS_100="prod_..."
4141
VITE_POLAR_PRODUCT_PRO_MONTHLY="prod_..."
4242
VITE_POLAR_PRODUCT_BUSINESS_MONTHLY="prod_..."
4343

44+
# =============================================================================
45+
# OBSERVABILITY / SENTRY
46+
# =============================================================================
47+
# Supply Sentry DSNs to enable error + log forwarding. Leave empty to disable.
48+
SENTRY_DSN=""
49+
VITE_SENTRY_DSN=""
50+
51+
# Structured logging fan-out. Flip these to control console patching and
52+
# whether application logs sync to Sentry.
53+
SENTRY_LOGGING="true"
54+
VITE_SENTRY_LOGGING="true"
55+
SENTRY_LOG_LEVEL="warn"
56+
VITE_SENTRY_LOG_LEVEL="warn"
57+
CONSOLE_LOGGER_PATCH="true"
58+
VITE_CONSOLE_LOGGER_PATCH="true"
59+
4460
# =============================================================================
4561
# DATABASE CONFIGURATION
4662
# =============================================================================

0 commit comments

Comments
 (0)