Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
chore: increment metric in wallet endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Jan 18, 2024
1 parent 17b8f6c commit 6c9b721
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/routes/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
} from '../constants';
import * as _ from 'lodash';
import { BadRequestError } from '../errors';
import { blockListedContractCount } from '../metrics';

export async function walletContractHandler(ctx: KoaContext) {
const { address } = ctx.params;
Expand Down Expand Up @@ -83,6 +84,11 @@ export async function walletContractHandler(ctx: KoaContext) {
logger.debug('Skipping blocklisted contract.', {
contractTxId: id,
});
blockListedContractCount
.labels({
contractTxId: id,
})
.inc();
return null;
}

Expand Down

0 comments on commit 6c9b721

Please sign in to comment.