src/metrics/httpMetrics.ts
Function registerHttpsMetric
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private registerHttpsMetric () {
if (this.metricService === undefined) return this.logger(`Failed to load metric service`)
const histogram = new Histogram()
const p50: InternalMetric = {
name: `HTTPS Mean Latency`,
Function registerHttpMetric
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private registerHttpMetric () {
if (this.metricService === undefined) return this.logger(`Failed to load metric service`)
const histogram = new Histogram()
const p50: InternalMetric = {
name: `HTTP Mean Latency`,
Function hookHttp
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private hookHttp (nodule: any, name: string) {
if (nodule.Server === undefined || nodule.Server.prototype === undefined) return
if (this.modules[name] !== undefined) return this.logger(`Module ${name} already hooked`)
this.logger(`Hooking to ${name} module`)
this.modules[name] = nodule.Server.prototype