a16z-infra / ai-getting-started

A Javascript AI getting started stack for weekend projects, including image/text models, vector stores, auth, and deployment configs
https://ai-getting-started.com/
MIT License
4k stars 643 forks source link

Application Monitoring #28

Open scefali opened 1 year ago

scefali commented 1 year ago

Is there interest in adding an application monitoring solution such as Sentry (which can be self-hosted if you don't want to pay for Saas)? If so I can, spend some time adding it in.

ykhli commented 1 year ago

hey @scefali thanks for this! Definitely interested in learning more - could you maybe post more details on how this works and which parts will be the most useful for devs building an AI app? Excited to dive in!

scefali commented 1 year ago

@ykhli Sure! So Sentry has a Next.js sdk that would be useful here. It provides error, performance, and session replay monitoring out of the box. I added Sentry to the EpicStack which is also hosted on Fly.io so I'd largely follow the same strategy I did there.

As for what's most useful, I'd say definitely error and session replay. Performance is probably less so.