Files
myeasycms-v2/packages/monitoring/api
Giancarlo Buomprisco 4a47df81db Registry API Refactoring (#144)
* Refactor core to use a flexible registry pattern

- Introduce a new registry mechanism for mailer providers
- Extract mailer provider enum to a separate file
- Implement dynamic mailer loading using a registry
- Update package dependencies and exports
- Improve modularity and extensibility of mailer implementation

* Refactor monitoring and billing services to use a flexible registry pattern

- Introduce a shared registry mechanism for dynamic service loading
- Replace static switch-based implementations with a registry-based approach
- Update instrumentation, CMS, and monitoring services to use the new registry
- Improve modularity and extensibility of service implementations
- Add Zod-based type-safe provider validation

* Simplify async registration in monitoring and billing services

- Remove unnecessary async wrappers for no-op registrations
- Update type definitions to support both async and sync registration functions
- Standardize registration approach for Paddle and Sentry providers

* Remove Tailwind package from packages where it is not being needed

* Remove Tailwind config references from pnpm-lock.yaml

* Update instrumentation registry to support dynamic monitoring providers

- Modify type definition to use NonNullable MonitoringProvider
- Import MonitoringProvider type from get-monitoring-provider
- Enhance type safety for instrumentation registration
2025-02-05 18:38:43 +08:00
..
2025-02-05 18:38:43 +08:00
2025-02-05 18:38:43 +08:00
2024-05-28 15:17:56 +07:00

Monitoring / @kit/monitoring

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

NEXT_PUBLIC_MONITORING_PROVIDER=
ENABLE_MONITORING_INSTRUMENTATION=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 ENABLE_MONITORING_INSTRUMENTATION environment variable to true.

ENABLE_MONITORING_INSTRUMENTATION=true