* Updated packages Updated all packages to the latest versions * Refactor Sentry monitoring configuration and services The Sentry monitoring configuration and services have been refactored to simplify the setup process. In addition, unnecessary files or exports have been removed from the Sentry package. These changes should make the process of initializing and using the Sentry monitoring services in both the client and server more straightforward and efficient. * Refactor server-side Sentry instrumentation code The conditional logic responsible for checking the runtime environment and the enabled status of the monitoring instrumentation has been adjusted. This refactoring simplifies the code, making it more readable, by clearly separating the conditions and nesting the environment-specific operations. A typo in the environment variable name "ENABLE_MONITORING_INSTRMENTATION" was also corrected to "ENABLE_MONITORING_INSTRUMENTATION". * Rename environment variable for monitoring instrumentation The environment variable controlling monitoring instrumentation has been renamed from 'MONITORING_INSTRUMENTATION_ENABLED' to 'ENABLE_MONITORING_INSTRUMENTATION'. It affects both the README and .env.production files within the monitoring/api and apps/web directories respectively.
39 lines
872 B
Markdown
39 lines
872 B
Markdown
# 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
|
|
``` |