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

Add global scope to ensure we only calculate hits on endpoints matching the /api route prefix #45

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

omarrida
Copy link
Contributor

  • Add a global scope on the Hit model to filter records where the endpoint attribute starts with /api.
  • Update the Slack notification header to specify that the stats are for API hits.

@omarrida omarrida requested a review from mattstauffer April 29, 2024 16:13
@mattstauffer mattstauffer merged commit fd90490 into main Apr 29, 2024
1 check passed
@mattstauffer mattstauffer deleted the ozr/only-report-api-route-hits branch April 29, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants