Chocobozzz/PeerTube

View on GitHub
server/core/lib/opentelemetry/metrics.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function registerMetrics has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  registerMetrics (options: { trackerServer: any }) {
    if (CONFIG.OPEN_TELEMETRY.METRICS.ENABLED !== true) return

    logger.info('Registering Open Telemetry metrics')

Severity: Minor
Found in server/core/lib/opentelemetry/metrics.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status