mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
you can now export span to Zipkin and metrics to Prometheus when developing locally follow the docs of OTEL: https://opentelemetry.io/docs/instrumentation/js/exporters/ <img width="2357" alt="image" src="https://github.com/toeverything/AFFiNE/assets/8281226/ec615e1f-3e91-43f7-9111-d7d2629e9679">
28 lines
723 B
TypeScript
28 lines
723 B
TypeScript
import { Module } from '@nestjs/common';
|
|
|
|
import { AppController } from './app.controller';
|
|
import { CacheModule } from './cache';
|
|
import { ConfigModule } from './config';
|
|
import { BusinessModules } from './modules';
|
|
import { AuthModule } from './modules/auth';
|
|
import { PrismaModule } from './prisma';
|
|
import { SessionModule } from './session';
|
|
import { StorageModule } from './storage';
|
|
import { RateLimiterModule } from './throttler';
|
|
|
|
const BasicModules = [
|
|
PrismaModule,
|
|
ConfigModule.forRoot(),
|
|
CacheModule,
|
|
StorageModule.forRoot(),
|
|
SessionModule,
|
|
RateLimiterModule,
|
|
AuthModule,
|
|
];
|
|
|
|
@Module({
|
|
imports: [...BasicModules, ...BusinessModules],
|
|
controllers: [AppController],
|
|
})
|
|
export class AppModule {}
|