/**
 * A `MetricListener` is capable of taking some action in response to a metric
 * being recorded, such as sending that metric to a third-party service.
 *
 * @tsplus type ets/Metrics/MetricListener
 */
export class MetricListener {
  constructor(unsafeUpdate) {
    this.unsafeUpdate = unsafeUpdate;
  }

  unsafeUpdateCache(key) {
    return this.unsafeUpdate(key);
  }

}
//# sourceMappingURL=MetricListener.mjs.map