mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(server): telemetry env (#13564)
This commit is contained in:
parent
23646f0d55
commit
12628b80bc
8 changed files with 108 additions and 43 deletions
|
|
@ -23,7 +23,6 @@ import { repositories } from 'src/repositories';
|
|||
import { ConfigRepository } from 'src/repositories/config.repository';
|
||||
import { services } from 'src/services';
|
||||
import { DatabaseService } from 'src/services/database.service';
|
||||
import { otelConfig } from 'src/utils/instrumentation';
|
||||
|
||||
const common = [...services, ...repositories];
|
||||
|
||||
|
|
@ -37,14 +36,14 @@ const middleware = [
|
|||
];
|
||||
|
||||
const configRepository = new ConfigRepository();
|
||||
const { bull } = configRepository.getEnv();
|
||||
const { bull, otel } = configRepository.getEnv();
|
||||
|
||||
const imports = [
|
||||
BullModule.forRoot(bull.config),
|
||||
BullModule.registerQueue(...bull.queues),
|
||||
ClsModule.forRoot(clsConfig),
|
||||
ConfigModule.forRoot(immichAppConfig),
|
||||
OpenTelemetryModule.forRoot(otelConfig),
|
||||
OpenTelemetryModule.forRoot(otel),
|
||||
TypeOrmModule.forRootAsync({
|
||||
inject: [ModuleRef],
|
||||
useFactory: (moduleRef: ModuleRef) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue