Serverless Endpoint Function Logs for Private Apps
Starting September 11, 2024, private app developers using serverless endpoint functions in HubSpot with an Enterprise Content Hub subscription can now access detailed logs for requests made to these function invocations. This new functionality is available under a dedicated sub-tab within the Logs section of the app details UI. The logs provide critical insights and can be filtered based on key parameters such as Method, Domain, and HTTP Status Response Code. Developers can also export the logs as a CSV file for further analysis and reporting.
This update is especially useful for CMS developers in scenarios where serverless endpoint functions are required, such as custom webhooks or external API calls within CMS pages. Moreover, developers can migrate existing functionality from the DFS/Design Manager into HubSpot projects and private apps, leveraging the power of the serverless framework for more flexibility and scalable solutions.
What's changing?
To access the serverless endpoint function logs, follow these steps:
- Navigate to Settings > Integrations > Private Apps.
- Select your Private App.
- On the Private App Details page, click the Logs tab.
- Select the new Endpoint Functions sub-tab to view the most recent logs.
You can filter the log results by Method, Domain, and HTTP Status Response Code. You can also adjust the logs based on your preferred time horizon and other custom criteria.
For in-depth analysis, export the logs as a CSV file using the Export option provided in the interface.
This new feature improves monitoring capabilities for serverless functions, giving developers greater control over their app’s performance and troubleshooting. Exporting logs allows for a deeper analysis of function behavior and patterns.
For further details on using this feature, please refer to the severless function documentation.
When is it happening?
This change goes into effect on September 11th, 2024.
Questions or comments? Join us in the developer forums for peer-to-peer discussions.