Which two are considered discrete units of work (code units) within a transaction in the debug logs?
Discrete units of work (code units) are blocks of code that execute as a single operation and can be rolled back if an error occurs. Within a transaction in the debug logs, the following are considered discrete units of work:
Web service invocation. This is a code unit that calls an external web service using SOAP or REST protocols. The web service invocation can be synchronous or asynchronous, and it can return a response or a fault. The debug logs show the request and response details, as well as the execution time and heap size of the code unit.
Apex class. This is a code unit that defines a custom class with variables, methods, constructors, and other elements. The Apex class can be invoked by triggers, Visualforce pages, Lightning components, or other classes. The debug logs show the entry and exit points, as well as the execution time and heap size of the code unit.Reference:
Execution Governors and Limits
Debug Log Analysis
Michal
3 months agoRikki
3 months agoFrancine
3 months agoElise
4 months agoShaniqua
4 months agoDeeanna
4 months agoLavina
4 months agoLeila
4 months agoRanee
5 months agoOren
5 months agoMatthew
5 months agoChauncey
5 months agoAbraham
5 months agoShawnee
5 months agoRutha
5 months agoCruz
5 months agoStefany
5 months ago