-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(releasehealth): Implement get_num_sessions_per_project on metrics backend [INGEST-249] #29208
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Returns the number of sessions for each project specified. | ||
Additionally | ||
""" | ||
return _get_num_sessions_per_project( # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Do we actually need #type: ignore
here? _get_num_sessions_per_project
looks fully typed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we do, it puzzled me as well,
I think that it is because sentry/snuba/sessions.py
is not included in the mypy checked files and it assumes that it returns Any
since it can't check it.
Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
Like in #28598, port get_num_sessions_per_project from sentry.snuba.sessions to metrics.
INGEST-249