Files
myeasycms-v2/packages/monitoring
giancarlo a074e1ec3b Implement Baselime monitoring and update error handling
This commit introduces the integration of Baselime for monitoring, accounting for various error scenarios and improved console error logging. Request handling has been updated to assign unique IDs for each request, aiding in tracing/logs. The environment variable key was updated, and the `MonitoringProvider` was nested in the root providers. In the base monitoring service, a function to format errors for logging was added. The provider logic was updated to create a new instance of service for each request, improving memory efficiency.
2024-04-22 18:41:38 +08:00
..

Monitoring / @kit/monitoring

Please set the following environment variable to your preferred monitoring provider:

NEXT_PUBLIC_MONITORING_PROVIDER=
MONITORING_INSTRUMENTATION_ENABLED=true

Available Providers

To use a specific provider, set the NEXT_PUBLIC_MONITORING_PROVIDER environment variable to one of the following values:

  1. Baselime: baselime
  2. Sentry: sentry

Baselime

To use Baselime, set the NEXT_PUBLIC_MONITORING_PROVIDER environment variable to baselime.

NEXT_PUBLIC_MONITORING_PROVIDER=baselime

Sentry

To use Sentry, set the NEXT_PUBLIC_MONITORING_PROVIDER environment variable to sentry.

NEXT_PUBLIC_MONITORING_PROVIDER=sentry

Instrumentation

To enable instrumentation, set the MONITORING_INSTRUMENTATION_ENABLED environment variable to true.

MONITORING_INSTRUMENTATION_ENABLED=true