Repository navigation
ref(metrics): Replace per-project aggregators with single system service - #1065
Merged
Merged
Conversation
jjbayer
marked this pull request as ready for review
August 27, 2021 13:02
untitaker
approved these changes
Aug 30, 2021
jan-auer
approved these changes
Aug 30, 2021
| self.receiver | ||
| .send(FlushBuckets::new(project_key, buckets)) | ||
| .into_actor(self) | ||
| .and_then(clone!(project_key, |result, slf, _ctx| { |
Member
There was a problem hiding this comment.
Can we double-check why this clone! is necessary? ProjectKey implements Copy, so in worst case a move closure should do.
Member
There was a problem hiding this comment.
I think I remember a quirk where Copy-values don't get copied but move the same way as Clone-values into the closure. however even then that shouldn't pose problems because there's no use after the closure and the one extra-use surely would behave like a regular Copy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes the aggregator so that it becomes a system-level singleton. Most notably, this creates a single flush loop for all metrics rather than one per project, which reduces scheduling overheads.
In this PR:
ProjectKeypart ofBucketKeySystemServiceNot implemented yet:
https://getsentry.atlassian.net/browse/INGEST-302
#skip-changelog