-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: Add server runtime metrics aggregator #9894
Conversation
4c19afd
to
29c6cf7
Compare
size-limit report 📦
|
0beba1e
to
dfdcc8b
Compare
70ab0a3
to
15436cd
Compare
Could you rename the simple/browser-aggregator with |
15436cd
to
1b4451c
Compare
@lforst It's not a 1 to 1 move because I also had to do a refactoring on the bucket value type. |
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.
awesome!!
@@ -30,7 +30,7 @@ export function createMetricEnvelope( | |||
return createEnvelope<StatsdEnvelope>(headers, [item]); | |||
} | |||
|
|||
function createMetricEnvelopeItem(metricBucketItems: Array<MetricBucketItem>): StatsdItem { | |||
function createMetricEnvelopeItem(metricBucketItems: MetricBucketItem[]): StatsdItem { |
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.
so nit, I always prefer Array<T>
because of https://tkdodo.eu/blog/array-types-in-type-script, but this is fine as well.
Maybe we should enforce one vs. other with lint rule.
699863e
to
44854d7
Compare
44854d7
to
c38fb53
Compare
Implements
Caveats