spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/impl/ValidationHelper.java [39:62]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Id baseId = registry.createId("spectator.measurements");
    Id droppedId = baseId.withTag("id", "dropped");
    this.measurementsSent = registry.counter(baseId.withTag("id", "sent"));
    this.measurementsDroppedHttp = registry.counter(droppedId.withTag("error", "http-error"));
    this.measurementsDroppedInvalid = registry.counter(droppedId.withTag("error", "validation"));
    this.measurementsDroppedOther = registry.counter(droppedId.withTag("error", "other"));
  }

  void incrementDroppedHttp(int amount) {
    measurementsDroppedHttp.increment(amount);
  }

  /**
   * Report metrics and do basic logging of validation results to help the user with
   * debugging.
   */
  void recordResults(int numMeasurements, HttpResponse res) {
    if (res.status() == 200) {
      measurementsSent.increment(numMeasurements);
    } else if (res.status() < 500) {
      // For validation:
      // 202 - partial failure
      // 400 - all failed, could also be some other sort of failure
      try {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spectator-reg-stateless/src/main/java/com/netflix/spectator/stateless/ValidationHelper.java [36:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Id baseId = registry.createId("spectator.measurements");
    Id droppedId = baseId.withTag("id", "dropped");
    this.measurementsSent = registry.counter(baseId.withTag("id", "sent"));
    this.measurementsDroppedHttp = registry.counter(droppedId.withTag("error", "http-error"));
    this.measurementsDroppedInvalid = registry.counter(droppedId.withTag("error", "validation"));
    this.measurementsDroppedOther = registry.counter(droppedId.withTag("error", "other"));
  }

  void incrementDroppedHttp(int amount) {
    measurementsDroppedHttp.increment(amount);
  }

  /**
   * Report metrics and do basic logging of validation results to help the user with
   * debugging.
   */
  void recordResults(int numMeasurements, HttpResponse res) {
    if (res.status() == 200) {
      measurementsSent.increment(numMeasurements);
    } else if (res.status() < 500) {
      // For validation:
      // 202 - partial failure
      // 400 - all failed, could also be some other sort of failure
      try {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



