-
-
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
feat(CapMan): Pass tenant_ids
to Snuba
#44788
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.
just one question
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.
seems safe. couple questions on consistency:
- why are some referrers defined in a constants file and others not?
- why do some referrers use underscores and others dashes?
I only refactored existing referrers within the same function and added 1 new one following the same convention as another referrer in the same file. I'm not sure what the guidance around referrers is but it seems most implementations have their own version, this inconsistency existed before I made any changes. |
* master: (37 commits) ref(ppf): Don't use --commit-batch-size for futures queue length (#45182) feat(codecov-v2): Add more logging (#45225) fix(alerts): Center table items on alert history page (#45226) feat(CapMan): Pass `tenant_ids` to Snuba (#44788) ref(db): Drop `project_id` from Environment (model state) (#45207) chore(profiling): Rename context in profiles task (#45208) feat(replays): Improve index page query performance (#45098) chore(issue assignment): Add logging for`GroupOwner` auto assignment (#45142) fix(hybrid-cloud): Uncache organization when queueing it for deletion (#45213) fix(perf): Navigating to Transaction Summary from Trends widget should persist custom date selection (#45190) fix(pageFilter): Fix overflow (#45169) ref(git hooks): Only suggest autoupdate variable when pulling if not already set (#45179) fix(dashboard): Include dashboard filters in widget viewer (#45106) fix(alerts): Remove null projects from alerts list (#45202) feat(replay): Update Inline replay onboarding img to support dark mode (#45084) __iexact reduce call has default value now. (#45206) feat(replay): Use SDK value for LCP (#44868) chore(hybrid-cloud): breaking foreign keys (#45203) Revert "ref(db): Drop `project_id` from Environment (model state) (#45094)" ref(db): Drop `project_id` from Environment (model state) (#45094) ...
### Overview - Added `organization_id` to more Snuba Requests, specifically targeting `tsdb-modelid:4` queries as they are the biggest chunk of queries Snuba is handling in production - Most calls to `tsdb.get_range` handled as well, some I wasn't able to figure out - More context: #44788
### Overview - Added `organization_id` to more Snuba Requests, specifically targeting `tsdb-modelid:300` and `tsdb-modelid:100` - Legacy queries now pass `tenant_ids` to Snuba as well - Removed hardcoded referrer in tenant_ids, moved to populate referrer in query functions - More context: #44788
- All Tagstore Snuba queries now pass the `organization_id` tenant_id in the request - See #44788 for more context
### Overview - All Snuba queries built and executed with `QueryBuilder` objects now contain org ID in `tenant_ids` for their Snuba Requests - Outcomes Timeseries Queries now have tenant_ids - Search queries now have tenant_ids - See #44788 for more context
### Overview - All Eventstore queries now contain `tenant_ids` - See #44788 for more context
Overview
Changes
organization_id
andreferrer
(referrer already existed but this PR adds it to the dictionary)tenant_ids
per requestorganization_id
from some easy use cases of the Snuba API and will be working on more complicated ones in future PRsNotes