Developers building UI Extensions with private apps will now be able to connect front-end and back-end logs with a single trace ID. You can trace and visualize both events in the front-end React layer (e.g. card rendering, button clicks, data entry) and backend events in the serverless layer (e.g. API calls) in a single view. This makes it significantly easier to debug issues and catch any issues that are happening in production to accelerate resolution.
To take advantage of this functionality your project needs to be on Project Platform Version 2023.2.
When viewing an individual private app within the CRM Development tools you'll see a new tab called "Log Traces". Here you can search for a trace ID and click on individual log lines on the log tree to view the complete log output. Currently, we support INFO, DEBUG, WARN, and ERROR log levels.
Within the existing "Logs" tab you'll now see two new sub-tabs: UI Extension Logs and Serverless Logs.
In the UI Extension logs tab, each log event displays the result of the card render, affected card name, the object type and ID that the card was displayed on, when it occurred, and view the log trace. Logs can be filtered by error category, card ID, card location, CRM object type, card location, and date range and searched on trace ID and CRM object ID. Users can also view and copy trace ID and view user details in the ‘Log Details’ side-tab (displayed when a log event is clicked).
The Serverless Function Logs tab displays logs outputted by serverless functions. Users can filter on error category, card ID, CRM object type, card location, and date range as well as search on request ID and CRM object ID. Users can also view and copy trace ID and view user details in the ‘Log Details’ side-tab (displayed when log line is clicked).
There are some known limitations and areas we're investigating for future improvement:
Log tracing for UI Extension development is available now.
Questions or comments? Join us in the developer forums.