Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance monitoring #329

Closed
juliushaertl opened this issue Jul 8, 2021 · 3 comments · Fixed by #496
Closed

Performance monitoring #329

juliushaertl opened this issue Jul 8, 2021 · 3 comments · Fixed by #496

Comments

@juliushaertl
Copy link
Contributor

Feature Request

Besides error tracking, Sentry also offers performance monitoring capabilities https://docs.sentry.io/product/performance/

Summary

It would probably be interesting to see this can also be used to trace performance metrics of certain operations like db transactions, controller execution or app bootstrap for example. It would also be available for the frontend where it could even gather web vitals metrics.

https://docs.sentry.io/platforms/php/performance/
https://docs.sentry.io/platforms/javascript/performance/
https://docs.sentry.io/product/performance/web-vitals/

We might be able to use or extend the already existing OCP\Diagnostics\IEventLogger for that in the server https://github.com/nextcloud/server/blob/215aef3cbdc1963be1bb6bca5218ee0a4b7f1665/lib/public/Diagnostics/IEventLogger.php#L31

@ChristophWurst
Copy link
Owner

ChristophWurst commented Jan 23, 2023

With nextcloud/server#36310 we should be able to register a middleware that runs around every request and monitors controller methods as transactions 🍿

@ChristophWurst
Copy link
Owner

Tada

Bildschirmfoto vom 2023-01-24 09-29-59

@skjnldsv
Copy link

Yesss!!!
Can't wait to see where we lose so much perfs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants