Skip to content

Conversation

@vikashkrml
Copy link
Contributor

Created new fields for Apex cursor limits, Added logic to Capture Apex cursor limits, updated permission sets, updated Test classes

…ic to Capture Apex cursor limits, updated permission sets, updated Test classes
@vikashkrml vikashkrml requested a review from jongpie as a code owner August 2, 2025 13:27
Copy link
Owner

@jongpie jongpie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vikashkrml thanks so much for working on this! I did a quick preliminary review, and overall this looks really great. I'm hoping that later this week, I'll be able to do a more thorough review - I'll keep you updated on my progress!

@jongpie jongpie added Type: Enhancement New feature or request Salesforce Feature: Reporting Anything related to reports, dashboards, and the underlying data model Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine Salesforce Feature: Platform Events Items related to how platform events are leveraged by Nebula Logger labels Aug 5, 2025
@vikashkrml
Copy link
Contributor Author

@jongpie Thank you.
Sure, take your time.

@jongpie
Copy link
Owner

jongpie commented Aug 14, 2025

@vikashkrml I've pushed some additional commits to your branch. Overall your changes look awesome, I just made a few clean-up changes, including:

  • Slightly renamed some of the new field for clarity
  • Moved around some code for consistency
  • Added some formula fields on LogEntry__c (similar to the other limits formula fields on LogEntry__c)

I'll do one more round of review/testing just to be safe, but my hope is to merge this tomorrow. If you have any questions/comments about the changes I made, let me know!

@vikashkrml
Copy link
Contributor Author

@jongpie Thanks for reviewing and pushing the additional commits!
The changes you made look great — I especially like the improved field naming and the added formula fields on LogEntry__c. Everything looks clear on my end, so I don’t have any questions at the moment.

Appreciate the extra round of testing before merge! 🚀

…CallsOnApexCursorUsed__c on LogEntryEvent__e and LogEntry__c to LimitsApexCursorFetchCallsMax__c and LimitsApexCursorFetchCallsUsed__c

These field names deviate from the method naming convention used in the Limits class - but the method names getFetchCallsOnApexCursor() & getLimitFetchCallsOnApexCursor() are kind of.... bad. And also inconsistent with the other Limits method names getApexCursorRows() & getLimitApexCursorRows()
@jongpie
Copy link
Owner

jongpie commented Aug 15, 2025

Thanks @vikashkrml for the feedback! I did another review today, and after looking at the field names some more, I decided to slightly rename the fetch calls fields as well. You named them consistently with the Limits methods, which I 100% appreciate the consistency - but in this case, I dislike how Salesforce has named the methods in the Limits class, so I've adjusted the names for the fields to be (what I think is) a little bit clearer

  • LimitsFetchCallsOnApexCursorUsed__c fields ➡️ renamed to LimitsApexCursorFetchCallsUsed__c
  • LimitsFetchCallsOnApexCursorMax__c fields ➡️ renamed to LimitsApexCursorFetchCallsMax__c

With those changes, all of the new Apex cursor fields now have a consistent naming convention within Nebula Logger (even if it differs a bit from the method names in the Limits class):

  1. LimitsApexCursorFetchCallsUsed__c
  2. LimitsApexCursorFetchCallsMax__c
  3. LimitsApexCursorRowsUsed__c
  4. LimitsApexCursorRowsMax__c

Here's a screenshot showing the end result via the 2 LogEntry__c formula fields LimitsApexCursorFetchCalls__c and LimitsApexCursorRows__c:

image

I think this is the last change I'll make 😅, I'm going to try to merge & release this later today!

Thanks again for all of your help with this!

@jongpie jongpie linked an issue Aug 15, 2025 that may be closed by this pull request
jongpie
jongpie previously approved these changes Aug 15, 2025
@jongpie jongpie merged commit c1402a9 into jongpie:main Aug 15, 2025
1 check passed
@jongpie
Copy link
Owner

jongpie commented Aug 15, 2025

Alright, this is now available in release v4.16.5 - thanks again for your help @vikashkrml!

@vikashkrml
Copy link
Contributor Author

Thanks @jongpie for the update and for explaining the renaming decision — that makes total sense 👍. I agree the new names are much clearer and having everything aligned within Nebula Logger definitely improves readability.

Really glad to see this merged and released in v4.16.5 🎉. Thanks for walking me through the review process and for refining the changes along the way!

I’d be happy to contribute more in the future as well.

Thanks again! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Layer: Log Management Items related to the custom objects & Logger Console app Layer: Logger Engine Items related to the core logging engine Salesforce Feature: Platform Events Items related to how platform events are leveraged by Nebula Logger Salesforce Feature: Reporting Anything related to reports, dashboards, and the underlying data model Type: Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Capture Apex cursor limits

2 participants