java/serving/src/main/java/feast/serving/service/OnlineServingServiceV2.java
private void populateCountMetrics(
      FeatureReferenceV2 featureRef,
      ServingAPIProto.GetOnlineFeaturesResponse.FeatureVectorOrBuilder featureVector) {
    String featureRefString = Feature.getFeatureReference(featureRef);
    featureVector
        .getStatusesList()
        .forEach(
            (status) -> {
              if (status == FieldStatus.NOT_FOUND) {
                Metrics.notFoundKeyCount.labels(this.project, featureRefString).inc();
              }
              if (status == FieldStatus.OUTSIDE_MAX_AGE) {
                Metrics.staleKeyCount.labels(this.project, featureRefString).inc();
              }
            });
  }
/**
   * Populate count metrics that can be used for analysing online retrieval calls
   *
   * @param featureRef singe Feature Reference
   * @param featureVector Feature Vector built for this requested feature
   */
Populate count metrics that can be used for analysing online retrieval calls
@param featureRef singe Feature Reference
@param featureVector Feature Vector built for this requested feature
Populate count metrics that can be used for analysing online retrieval calls @param featureRef singe Feature Reference @param featureVector Feature Vector built for this requested feature
private void populateCountMetrics(
      FeatureReferenceV2 featureRef,
      ServingAPIProto.GetOnlineFeaturesResponse.FeatureVectorOrBuilder featureVector) {
    String featureRefString = Feature.getFeatureReference(featureRef);
    featureVector
        .getStatusesList()
        .forEach(
            (status) -> {
              if (status == FieldStatus.NOT_FOUND) {
                Metrics.notFoundKeyCount.labels(this.project, featureRefString).inc();
              }
              if (status == FieldStatus.OUTSIDE_MAX_AGE) {
                Metrics.staleKeyCount.labels(this.project, featureRefString).inc();
              }
            });
  }
private void populateCountMetrics ( FeatureReferenceV2 featureRef , ServingAPIProto . GetOnlineFeaturesResponse . FeatureVectorOrBuilder featureVector ) { String featureRefString = Feature . getFeatureReference ( featureRef ) ; featureVector . getStatusesList ( ) . forEach ( ( status ) -> { if ( status == FieldStatus . NOT_FOUND ) { Metrics . notFoundKeyCount . labels ( this . project , featureRefString ) . inc ( ) ; } if ( status == FieldStatus . OUTSIDE_MAX_AGE ) { Metrics . staleKeyCount . labels ( this . project , featureRefString ) . inc ( ) ; } } ) ; }
Populate count metrics that can be used for analysing online retrieval calls
 @param featureRef singe Feature Reference
 @param featureVector Feature Vector built for this requested feature
Populate count metrics that can be used for analysing online retrieval calls @param featureRef singe Feature Reference @param featureVector Feature Vector built for this requested feature