Application Insights

Cosmos supports enhanced application insights monitoring, including client-side monitoring. To enable this feature, on the Web Application for both the Editor and, if used, the publisher or API applications.

Follow the instructions as found in the Microsoft documentation.  Also see Microsoft documentation regarding enabling client-side monitoring.