Lalant commented on code in PR #7349:
URL: https://github.com/apache/ignite-3/pull/7349#discussion_r2752983409
##########
modules/api/src/main/java/org/apache/ignite/tx/TransactionOptions.java:
##########
@@ -80,4 +86,29 @@ public TransactionOptions readOnly(boolean readOnly) {
return this;
}
+
+ /**
+ * Returns transaction label. The label is used for identification in logs
and system views.
+ *
+ * @return Transaction label, or {@code null} if not set.
+ */
+ @Nullable
+ public String label() {
+ return label;
+ }
+
+ /**
+ * Sets transaction label. The label is used for identification in logs
and system views.
+ *
+ * <p>Transaction labels help identify and track transactions in system
logs and the transaction system view.
+ * They can be useful for debugging and monitoring purposes.
+ *
+ * @param label Transaction label. Can be {@code null} to clear the label.
+ * @return {@code this} for chaining.
+ */
Review Comment:
Done
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]