Skip to content

Commit

Permalink
add metric for anchor accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
gvelez17 authored Apr 17, 2024
1 parent 96f079a commit f656139
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/request-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export class RequestController {
)
}
logger.debug(`Found request for ${requestParams.cid} of stream ${requestParams.streamId}`)
Metrics.count(METRIC_NAMES.ANCHOR_ACCEPTED, 1, { source: parseOrigin(req) })
return res.status(StatusCodes.ACCEPTED).json(found)
} catch (err: any) {
Metrics.count(METRIC_NAMES.REQUEST_NOT_CREATED, 1, { source: parseOrigin(req) })
Expand Down

0 comments on commit f656139

Please sign in to comment.