private add()

in glean/src/core/metrics/types/rate.ts [102:114]


  private add(value: Rate): void {
    if (!this.shouldRecord(Context.uploadEnabled)) {
      return;
    }

    try {
      Context.metricsDatabase.transform(this, this.transformFn(value));
    } catch (e) {
      if (e instanceof MetricValidationError) {
        e.recordError(this);
      }
    }
  }