@Override
  public void initialize() {
    try {
      this.logging = LoggingOptions
        .newBuilder()
        .setProjectId(GoogleCloudUtils.getProjectId())
        .setCredentials(GoogleCredentials.getApplicationDefault())
        .build()
        .getService();
    } catch (IOException e) {
      throw new RuntimeException("Couldn't initialize StackdriverMonitorExtension", e);
    }
  }
A {@link MonitorExtension} that provisions a {@link Monitor} that logs to
Google Stackdriver.
extensions/cloud/portability-cloud-google/src/main/java/org/datatransferproject/cloud/google/StackdriverMonitorExtension.java