-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(metrics): Configurable flush time shift (#2349)
We currently shift the flush time of each metrics bucket by an offset based on the project key. This prevents large peaks every interval, but still allows flushing buckets from the same projects together, which makes sense especially when the buckets are then sent to the upstream in per-project envelopes. With span metrics, we have seen that even buckets from the same project can cause a lot of traffic. With #2341, we want to increase the bucket interval for span metrics to one minute. To prevent large, project-specific peaks for span metrics, allow configuring a more random distribution over time. This should be used only in processing Relays where buckets are sent via Kafka.
- Loading branch information
Showing
2 changed files
with
55 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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