method IServiceDiscovery.report
IServiceDiscovery.report(
instance: ServiceInstance,
): void

Reports how a call to an instance went.

Enough failures inside the configured window eject the instance from IServiceDiscovery.pick's pool; a success clears its window and un-ejects it immediately. Ejection state is per-process.

Parameters

The instance that was called

Whether the call succeeded

Return Type

void

Usage

import { type IServiceDiscovery } from "common/src/index.ts";