зеркало из https://github.com/mozilla/fxa.git
Merge pull request #14431 from mozilla/train-244-uplift-3
Train 244 uplift 3
This commit is contained in:
Коммит
ef3ee0d765
|
@ -176,11 +176,7 @@ export const pushboxApi = (
|
|||
'pushbox.db.retrieve.success',
|
||||
performance.now() - startTime
|
||||
);
|
||||
statsd.increment('pushbox.db.retrieve', {
|
||||
uid,
|
||||
deviceId,
|
||||
msgCount: result.messages.length.toString(),
|
||||
});
|
||||
statsd.increment('pushbox.db.retrieve');
|
||||
return {
|
||||
last: result.last,
|
||||
index: result.index,
|
||||
|
@ -254,7 +250,7 @@ export const pushboxApi = (
|
|||
'pushbox.db.store.success',
|
||||
performance.now() - startTime
|
||||
);
|
||||
statsd.increment('pushbox.db.store', { uid, deviceId });
|
||||
statsd.increment('pushbox.db.store');
|
||||
return { index: result.idx };
|
||||
} catch (err) {
|
||||
statsd.timing(
|
||||
|
|
|
@ -97,8 +97,7 @@ describe('pushbox', () => {
|
|||
);
|
||||
sinon.assert.calledOnceWithExactly(
|
||||
mockStatsD.increment,
|
||||
'pushbox.db.store',
|
||||
{ uid: mockUid, deviceId: mockDeviceIds[0] }
|
||||
'pushbox.db.store'
|
||||
);
|
||||
assert.equal(index, '12');
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче