When setting up debug logs in a Salesforce Production org using trace flags, be aware of platform limits. The default debug log storage limit is 1,000 MB, and trace flags expire after 15 minutes. For instructions on how to set up debug logs on an Apex class or user, follow the standard Salesforce Help steps for enabling trace flags.
If the Apex class or user being traced generates many small debug logs per minute, and if this approaches the 15-minute expiry or 1,000 MB storage threshold, the likelihood of request failure in your org increases significantly.
Do not enable trace flags on API users or Apex classes that are on a critical Apex code path with high execution frequency during peak business hours. Enabling debug logging on these high-traffic paths can cause performance degradation and increase the risk of request failures.
000395769

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.