-
Notifications
You must be signed in to change notification settings - Fork 413
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
Check which endpoints are commonly used and get rid of the ones not being used #1329
Comments
So I just manually went through all API routes and checked the logs. I could only find the |
Can you please share the stats or the query you used (i.e the Grafana link)? How much is the "used" one used? Is the unused one used in prev days? |
I created a dashboard in Grafana (production) for checking the API usage. I thought that makes the most sense, so we can check it frequently. It's called I also found the |
Thank you. Yes looks like we can't really get rid of any of those endpoints 🫠 Just FYI I've updated the query to be |
While getting rid of the repoV1, we should have a look at the endpoints being used and also get rid of the unused ones to make the migration easier.
Our endpoints: https://docs.sourcify.dev/docs/api/#/
For example, my guess would be, that
/files/tree/
endpoints are not used at all. If we remove this unused endpoint, we wouldn't need to work on how to adapt this for the DB or the repoV2.I know this would be a breaking change to the API but if no one's using it, it's more pragmatic to just drop it here.
The task is to look at our nginx logs and find out the endpoints that were not called or rarely called and report them here.
The text was updated successfully, but these errors were encountered: