public static Credentials googleCredentials()

in src/main/java/com/google/cloud/dfmetrics/utils/MetricsCollectorUtils.java [107:116]


  public static Credentials googleCredentials() {
    try {
      return GoogleCredentials.getApplicationDefault();
    } catch (IOException e) {
      throw new RuntimeException(
          "Unable to get credentials! \n"
              + "Please run the `gcloud auth application-default login` command and set following environment variable: \n"
              + "\t export GOOGLE_APPLICATION_CREDENTIALS=/Users/${USER}/.config/gcloud/application_default_credentials.json");
    }
  }