Skip to content

Commit

Permalink
Use different counter type
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Sep 10, 2021
1 parent 4f2abfe commit d6340a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('trackLegacyRouteUsage', () => {
trackLegacyRouteUsage('test', mockUsageCounter);
expect(mockUsageCounter.incrementCounter).toHaveBeenCalledWith({
counterName: `legacy_route_test`,
counterType: 'route_access',
counterType: 'legacy_api_usage',
incrementBy: 1,
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function trackLegacyRouteUsage(route: string, usageCounter?: UsageCounter
if (usageCounter) {
usageCounter.incrementCounter({
counterName: `legacy_route_${route}`,
counterType: 'route_access',
counterType: 'legacy_api_usage',
incrementBy: 1,
});
}
Expand Down

0 comments on commit d6340a7

Please sign in to comment.