NebulaLogger icon indicating copy to clipboard operation
NebulaLogger copied to clipboard

Capture Apex cursor limits

Open jongpie opened this issue 1 year ago • 2 comments

Salesforce has introduced Apex cursors (currently in beta) as a new way to query large data sets. This new functionalty has some new transaction limits, available in the class System.Limits. From this page:

To get Apex cursor limits, use these new methods in the Limits class.

  • Limits.getApexCursorRows() and its upper bound Limits.getLimitApexCursorRows() method
  • Limits.getFetchCallsOnApexCursor() and its upper bound Limits.getLimitFetchCallsOnApexCursor() method

Nebula Logger should automatically capture & store these new limits in the same way it captures other limits. New fields will need to be created on LogEntryEvent__e and LogEntry__c to store the data.

jongpie avatar Sep 04 '24 03:09 jongpie

I can work on this @jongpie

twentyTwo avatar Sep 21 '24 03:09 twentyTwo

@twentyTwo that would be amazing! Feel free to submit a PR for this at your convenience, and let me know if you have any questions along the way

jongpie avatar Sep 23 '24 17:09 jongpie

@jongpie I would like to work on this.

vikashkrml avatar Jul 19 '25 10:07 vikashkrml

@vikashkrml sure, that sounds great!

jongpie avatar Jul 23 '25 02:07 jongpie

@jongpie really sorry for this pending item. You can assign this to @vikashkrml

twentyTwo avatar Jul 23 '25 05:07 twentyTwo

@twentyTwo no worries at all, and no need to apologize! It's open source work, there's no pressure to contribute! If/when you'd like to contribute to another item in the future, just let me know.

@vikashkrml I've reassigned this issue to you - whenever you have a PR ready, I can review it.

jongpie avatar Jul 23 '25 21:07 jongpie

This is now available in release v4.16.5! Once the version has been installed, the Apex cursor transaction limits will be automatically tracked on LogEntryEvent__e and LogEntry__c.

jongpie avatar Aug 15 '25 20:08 jongpie