packages/plugin-prometheus/src/prometheus.ts
Function attach
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function attach(this: Microfleet, opts: Partial<Config> = {}): Promise<PluginInterface> {
assert(this.hasPlugin('validator'), new NotFoundError('validator module must be included'))
// load local schemas
await this.validator.addLocation(resolve(__dirname, '../schemas'))