code: private void reportCreateStreamMetrics(String scope, String streamName, int initialSegments, CreateStreamStatus.Status status,
                                             Duration latency) {
          if (status.equals(CreateStreamStatus.Status.SUCCESS)) {
              streamMetrics.createStream(scope, streamName, initialSegments, latency);
          } else if (status.equals(CreateStreamStatus.Status.FAILURE)) {
              streamMetrics.createStreamFailed(scope, streamName);
          }
      }
docs: Metrics reporting region