Skip to content

Commit

Permalink
Merge pull request #14431 from mozilla/train-244-uplift-3
Browse files Browse the repository at this point in the history
Train 244 uplift 3
  • Loading branch information
dschom authored Nov 8, 2022
2 parents 8efe464 + f94b9e9 commit ef3ee0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions packages/fxa-auth-server/lib/pushbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down
3 changes: 1 addition & 2 deletions packages/fxa-auth-server/test/local/pushbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down

0 comments on commit ef3ee0d

Please sign in to comment.