@plyaz/types 1.23.1 → 1.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -94,6 +94,12 @@ export interface CoreBaseDomainServiceConfig {
|
|
|
94
94
|
enabled?: boolean;
|
|
95
95
|
/** Default values for feature flags or other defaults */
|
|
96
96
|
defaults?: Record<string, FeatureFlagValue>;
|
|
97
|
+
/**
|
|
98
|
+
* Custom observability adapter to use instead of the injected global/dedicated one.
|
|
99
|
+
* Useful when a service needs a different provider or custom configuration.
|
|
100
|
+
* Takes precedence over injected observability.
|
|
101
|
+
*/
|
|
102
|
+
observabilityOverride?: unknown;
|
|
97
103
|
}
|
|
98
104
|
/**
|
|
99
105
|
* Type for mapper class constructor
|
|
@@ -12,6 +12,7 @@ import type { RootStoreSlice } from '../../store';
|
|
|
12
12
|
import type { CoreAppEnvironment, CoreAppContext, CoreRuntimeEnvironment, CoreServiceRuntime } from '../modules';
|
|
13
13
|
import type { CoreDbServiceConfig } from '../services';
|
|
14
14
|
import type { CoreInjectedServices } from '../domain';
|
|
15
|
+
import type { MonitoringObservabilityAdapter, MonitoringAdapterWithPriority } from '../../observability';
|
|
15
16
|
/**
|
|
16
17
|
* Base interface that all domain service instances must implement.
|
|
17
18
|
* This allows the registry to manage services generically.
|
|
@@ -637,6 +638,12 @@ export interface CoreObservabilityConfig {
|
|
|
637
638
|
/** Export interval in milliseconds */
|
|
638
639
|
exportInterval?: number;
|
|
639
640
|
};
|
|
641
|
+
/**
|
|
642
|
+
* Pre-initialized adapters for observability.
|
|
643
|
+
* Can be plain adapters or adapters with priority/failover config.
|
|
644
|
+
* LoggerAdapter is auto-added as failover if not included.
|
|
645
|
+
*/
|
|
646
|
+
adapters?: (MonitoringObservabilityAdapter | MonitoringAdapterWithPriority)[];
|
|
640
647
|
}
|
|
641
648
|
/**
|
|
642
649
|
* Base core initialization options
|
package/package.json
CHANGED