Files
AFFiNE-Mirror/packages/backend/server/src/base/metrics/config.ts
2024-12-13 06:27:13 +00:00

34 lines
571 B
TypeScript

import { defineStartupConfig, ModuleConfig } from '../config';
declare module '../config' {
interface AppConfig {
metrics: ModuleConfig<{
/**
* Enable metric and tracing collection
*/
enabled: boolean;
/**
* Enable telemetry
*/
telemetry: {
enabled: boolean;
token: string;
};
customerIo: {
token: string;
};
}>;
}
}
defineStartupConfig('metrics', {
enabled: false,
telemetry: {
enabled: false,
token: '',
},
customerIo: {
token: '',
},
});