[SERVER-35305] Add timeOpenMicros to the transaction sub-document of currentOp Created: 31/May/18  Updated: 29/Oct/23  Resolved: 09/Jul/18

Status: Closed
Project: Core Server
Component/s: Diagnostics, Replication
Affects Version/s: None
Fix Version/s: 4.0.2, 4.1.1

Type: Task Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: Jinny Byun
Resolution: Fixed Votes: 0
Labels: per-txn-metrics
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-35173 Add autocommit value to transaction s... Closed
depends on SERVER-35300 Track total transaction duration in T... Closed
Documented
is documented by DOCS-12407 Docs for SERVER-35305: Add timeOpenMi... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2018-07-02, Repl 2018-07-16
Participants:

 Description   

We want the currentOp entry for both active and inactive transactions to contain an entry with a transaction.parameters sub document that contains the timeOpenMicros of the transaction. This field measures how long the transaction has been open. We should be able to get this real time value from the SingleTransactionStats object stored on the session.



 Comments   
Comment by Githook User [ 15/Aug/18 ]

Author:

{'username': 'jinichu', 'email': 'jinnybyun@gmail.com', 'name': 'jinichu'}

Message: SERVER-35305 Added timeOpenMicros to CurrentOp's transaction sub-document

(cherry picked from commit 171d44dd6f3afa485c380fb2718bbe3ab1e827be)
Branch: v4.0
https://github.com/mongodb/mongo/commit/e2b8a9456e89c10faeaeda145f7b6ba8062d6f58

Comment by Githook User [ 09/Jul/18 ]

Author:

{'username': 'jinichu', 'name': 'jinichu', 'email': 'jinnybyun@gmail.com'}

Message: SERVER-35305 Added timeOpenMicros to CurrentOp's transaction sub-document
Branch: master
https://github.com/mongodb/mongo/commit/171d44dd6f3afa485c380fb2718bbe3ab1e827be

Generated at Thu Feb 08 04:39:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.