Showing 2 of 2 total issues
Function trackDuration
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
trackDuration(req, res, next) {
if (
this.options.excludeRoutes
&& this.matchVsRegExps(req.originalUrl, this.options.excludeRoutes)
) {
Function initRoutes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initRoutes() {
const labelNames = ['status_code', 'method'];
if (this.options.includePath) {
labelNames.push('path');
}