Chocobozzz/PeerTube

View on GitHub
server/core/lib/opentelemetry/metric-helpers/bittorrent-tracker-observers-builder.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function buildObservers has 32 lines of code (exceeds 25 allowed). Consider refactoring.
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', {

    There are no issues that match your filters.

    Category
    Status