2024-08-02 11:57:29 +08:00
|
|
|
export const telemetryOptions = {
|
2024-08-14 14:32:14 +08:00
|
|
|
enabled: process.env.TELEMETRY_ENABLED === 'on' && process.env.APP_ENV === 'production',
|
2024-01-02 12:17:46 +08:00
|
|
|
metric: {
|
2024-07-31 02:31:08 +08:00
|
|
|
readerName: process.env.OTEL_METRICS_READER,
|
2024-01-02 12:17:46 +08:00
|
|
|
},
|
|
|
|
trace: {
|
2024-07-31 02:31:08 +08:00
|
|
|
processorName: process.env.OTEL_TRACES_PROCESSOR,
|
2024-01-02 12:17:46 +08:00
|
|
|
},
|
|
|
|
};
|