code: public void commitTransactionFailed(String scope, String streamName, String txnId) {
          DYNAMIC_LOGGER.incCounterValue(globalMetricName(COMMIT_TRANSACTION_FAILED), 1);
          DYNAMIC_LOGGER.incCounterValue(COMMIT_TRANSACTION_FAILED, 1, streamTags(scope, streamName));
          DYNAMIC_LOGGER.incCounterValue(COMMIT_TRANSACTION_FAILED, 1, transactionTags(scope, streamName, txnId));
      }
docs: This method increments the global, Stream-related and Transaction-related counters of failed commit operations.
  
  @param scope      Scope.
  @param streamName Name of the Stream.
  @param txnId      Transaction id.