Comment on what transaction IDs are

This commit is contained in:
Erik Johnston committed 2026-06-22 11:01:58 +01:00
1 parent 1cb9fabade
commit 32b0eafdb3
1 file changed
+3
+3
View File
@@ -505,6 +505,9 @@ impl EventInternalMetadata {
}
/// The transaction ID, if set when the event was created.
///
/// The transaction ID comes from the `txn_id` path parameter of the
/// client-server API request used to send the event.
pub fn txn_id(&self) -> PyResult<Option<String>> {
Ok(self.read_inner()?.get_txn_id().map(|s| s.to_owned()))
}