common/src/main/java/bio/terra/cloudres/util/MetricsHelper.java
/**
   * Records API sent to Cloud API .
   *
   * <p>This will be in path /cloud/api with client and methodName as tags,
   *
   * @param client the client which use this library.
   * @param method The cloud api where error happens.
   */
Records API sent to Cloud API .
This will be in path /cloud/api with client and methodName as tags.

@param client the client which use this library.
@param method The cloud api where error happens.
Records API sent to Cloud API . This will be in path / cloud / api with client and methodName as tags . @param client the client which use this library . @param method The cloud api where error happens .
public static void recordApiCount(String client, CloudOperation method) {
    TagContext tctx =
        tagger
            .emptyBuilder()
            .put(KEY_CLOUD_API, TagValue.create(method.toString()), tagMetadata)
            .put(KEY_CLIENT, TagValue.create(client), tagMetadata)
            .build();
    try (Scope ss = tagger.withTagContext(tctx)) {
      statsRecorder.newMeasureMap().put(API_COUNT, 1).record(tctx);
    }
  }
public static void recordApiCount ( String client , CloudOperation method ) { TagContext tctx = tagger . emptyBuilder ( ) . put ( KEY_CLOUD_API , TagValue . create ( method . toString ( ) ) , tagMetadata ) . put ( KEY_CLIENT , TagValue . create ( client ) , tagMetadata ) . build ( ) ; try ( Scope ss = tagger . withTagContext ( tctx ) ) { statsRecorder . newMeasureMap ( ) . put ( API_COUNT , 1 ) . record ( tctx ) ; } }
Records API sent to Cloud API .
Records API sent to Cloud API .