import { Module } from '@nestjs/common';
import { CaptureService } from './capture.service';
import { RedisRouter } from './redis-router.service';
import { TrackingController } from './tracking.controller';

/**
 * Edge tracking module. No database, no enrichment — the collector captures and
 * durably enqueues via {@link RedisRouter} (primary = black redis, spool = local
 * redis). All DB work happens on the black-side ingest-writer.
 */
@Module({
  controllers: [TrackingController],
  providers: [RedisRouter, CaptureService],
  exports: [RedisRouter],
})
export class TrackingModule {}
