server/core/lib/opentelemetry/metric-helpers/bittorrent-tracker-observers-builder.ts
Function buildObservers
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildObservers () {
const activeInfohashes = this.meter.createObservableGauge('peertube_bittorrent_tracker_active_infohashes_total', {
description: 'Total active infohashes in the PeerTube BitTorrent Tracker'
})
const inactiveInfohashes = this.meter.createObservableGauge('peertube_bittorrent_tracker_inactive_infohashes_total', {