-
Notifications
You must be signed in to change notification settings - Fork 97
feat: add stats support to zpages exporter #112
Conversation
c17e1cc
to
f7e6ca9
Compare
f7e6ca9
to
a2bb8d7
Compare
// Fills the output columns for that method | ||
if (view.name === DefaultViews.CLIENT_SENT_BYTES_PER_RPC || | ||
view.name === DefaultViews.SERVER_SENT_BYTES_PER_RPC) { | ||
const distribution = snapshot as DistributionData; |
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.
Can you throw an error if it's not a DistributionData
, and remove this cast? (Also in below)
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.
Done.
@@ -65,21 +77,56 @@ export class ZpagesExporter implements Exporter { | |||
} | |||
|
|||
/** | |||
* Is called whenever a span is started. | |||
* It's called whenever a span is started. |
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.
Nit: Remove It's
and just have it say: "Called whenver a span is started."
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.
Done
assert.equal(bucket3.lowBoundary, 30); | ||
assert.equal(bucket3.highBoundary, 40); | ||
|
||
// 40...Infinity) |
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.
Nit: Prefix with [
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.
Done.
This PR adds stats support to zpages exporter. Unit tests are included.