Skip to content

Commit bbd74bc

Browse files
committed
clean up metric and timer methods
1 parent 93ea86a commit bbd74bc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/client.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,18 @@ const MetricsClient = class MetricsClient extends stream.Transform {
6262
const meta = { ...options.meta, ...opts.meta };
6363
const time = end.seconds();
6464
const metric = new Metric({
65-
...options,
66-
...opts,
6765
type: 5,
6866
value: time,
67+
...options,
68+
...opts,
6969
meta,
7070
});
7171
this[push](metric);
7272
};
7373
}
7474

7575
metric(options) {
76-
const metric = new Metric({
77-
...options,
78-
});
76+
const metric = new Metric(options);
7977
this[push](metric);
8078
}
8179

0 commit comments

Comments
 (0)