forked from StepFi-app/StepFi-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsequence-manager.module.ts
More file actions
28 lines (27 loc) · 851 Bytes
/
Copy pathsequence-manager.module.ts
File metadata and controls
28 lines (27 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { Global, Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import {
SequenceManagerService,
} from './sequence-manager.service';
import {
SequenceMetrics,
sequenceManagerMetricProviders,
} from './sequence-manager.metrics';
/**
* Global module so the sequence manager is available everywhere without a
* per-feature import dance. Metric providers attach to the prom-client
* global registry that `MetricsModule` exposes; we deliberately do NOT
* call `PrometheusModule.register()` here so we don't create a second
* Prometheus controller/registry.
*/
@Global()
@Module({
imports: [ConfigModule],
providers: [
...sequenceManagerMetricProviders,
SequenceMetrics,
SequenceManagerService,
],
exports: [SequenceManagerService, SequenceMetrics],
})
export class SequenceManagerModule {}