-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(CapMan): More tenant_ids for TSDB Queries
#45274
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
Conversation
| except Environment.DoesNotExist: | ||
| stats = {g.id: tsdb.make_series(0, **query_params) for g in groups} | ||
| else: | ||
| org_id = groups[0].project.organization_id if groups else None |
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.
Assumes all groups in the list belong to a single org, let me know if this assumption is incorrect.
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.
that assumption seems correct. is groups guaranteed to have at least one element though?
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.
ah right, if groups will evaluate to False if it is empty.
JoshFerge
left a comment
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.
all look good to me except for group_stream.
| except Environment.DoesNotExist: | ||
| stats = {g.id: tsdb.make_series(0, **query_params) for g in groups} | ||
| else: | ||
| org_id = groups[0].project.organization_id if groups else None |
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.
that assumption seems correct. is groups guaranteed to have at least one element though?
Overview
organization_idto more Snuba Requests, specifically targetingtsdb-modelid:4queries as they are the biggest chunk of queries Snuba is handling in productiontsdb.get_rangehandled as well, some I wasn't able to figure outtenant_idsto Snuba #44788