Benefits of frontend logging
Gain insight into errors and user behavior with Datadog and Sentry.
Gain insight into errors. You can log errors so you know what errors occurred on the production site. In one of my apps, I log errors that made to the Error Boundary to Sentry.
Gain insight into user behavior. Both Datadog and Sentry provide automatically performance tracking. They can track what path the user has visited so you can get an idea what is most often visited pages are.
For smaller apps, it is probably a good idea to start with Sentry because it is free to use to start with.