AbstractReadonlyconfigReadonlyappThe unique app id of the app that is running
ReadonlymodeThe mode the app is running in
ReadonlycwdThe current working directory of the app
ReadonlypackageThe current working directory of the plugin
ReadonlypluginThe current working directory of the service
ReadonlypluginThe name of the plugin This is also the mapped name, or the name defined in the config rather than it's original defined name
Optional ReadonlyregionThe deployment region for resource context
Run lifecycle method for configuration plugins.
This method is inherited from the base plugin class but is not used by configuration plugins. Configuration plugins are initialized during the init phase and provide configuration data to other plugins. They do not require a separate run phase.
void
Configuration plugins are typically disposed after all other plugins have been initialized to free up memory, as configuration data is cached by individual plugins. Therefore, this method intentionally performs no operation.
// Configuration plugins do not need to implement run()
// The base class provides this no-op implementation
export class MyConfigPlugin extends BSBConfig {
// No run() override needed
}
AbstractgetReturns the observable plugins configuration (unified logging, metrics, tracing).
Promise resolving to an object containing the observable configuration for each plugin.
AbstractgetReturns the events plugins configuration.
Promise resolving to an object containing the events configuration for each plugin.
AbstractgetReturns the service plugins configuration.
Promise resolving to an object containing the configuration for each plugin.
AbstractgetReturns a mapped plugin name and whether the plugin is enabled or not
string of the plugin name and if it is enabled or not
AbstractgetReturns the configuration for a specific plugin.
The name of the plugin to retrieve the configuration for.
Promise resolving to the configuration object for the specified plugin, or null if the plugin is not found.
Optional AbstractdisposeDispose Optional function to be called when the plugin is being disposed
Optional AbstractinitInit Optional function to be called when the plugin is being initialized Can be sync or async
Observable context with logging, metrics, and trace information
v9 BREAKING CHANGE: Now requires Observable instead of DTrace. Observable provides unified access to logging, metrics, and tracing with automatic context propagation.
Template: T
The type of config for the plugin Abstract class representing the configuration for the Better Service Base.
See
API: BSBConfig