tachybase_todo/packages/core/telemetry/src/config.ts
TomyJan 0dc784c2be feat(telemetry): add Sentry as frontend telemetry (#1458)
Co-authored-by: sealday <zhanglin@daoyoucloud.com>
Reviewed-on: daoyoucloud/tachybase#1458
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: TomyJan <TomyJan6@gmail.com>
Co-committed-by: TomyJan <TomyJan6@gmail.com>
2024-08-14 14:32:14 +08:00

10 lines
264 B
TypeScript

export const telemetryOptions = {
enabled: process.env.TELEMETRY_ENABLED === 'on' && process.env.APP_ENV === 'production',
metric: {
readerName: process.env.OTEL_METRICS_READER,
},
trace: {
processorName: process.env.OTEL_TRACES_PROCESSOR,
},
};