nizhikov commented on code in PR #11726: URL: https://github.com/apache/ignite/pull/11726#discussion_r1880782142
########## modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTransactionsImpl.java: ########## @@ -238,12 +249,23 @@ private GridNearTxLocal txStart0( @Override public IgniteTransactions withLabel(String lb) { A.notNull(lb, "label should not be empty."); - return new IgniteTransactionsImpl<>(cctx, lb, tracingEnabled); + return new IgniteTransactionsImpl<>(cctx, lb, tracingEnabled, appAttrs); } /** {@inheritDoc} */ @Override public IgniteTransactions withTracing() { - return new IgniteTransactionsImpl<>(cctx, lb, true); + return new IgniteTransactionsImpl<>(cctx, lb, true, appAttrs); + } + + /** + * Returns an instance of {@code IgniteTransactions} with application attributes. + * + * @return Application attributes aware instance. + */ + public IgniteTransactions withApplicationAttributes(Map<String, String> appAttrs) { + A.notNull(appAttrs, "appAttrs should not be empty."); Review Comment: `A.ensure(!F.isEmpty(appAttrs), "...");` or new `A.notEmpty` method for a Map. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org