repowiseopen-telemetry/opentelemetry-collector

open-telemetry / opentelemetry-collector

gomaina5a8fef195.9K linessynced on Oct 27, 2026

Code health

8.5out of 10Excellent

Hotspots average 5.6, the place fixes pay off most.

Explore this codebase

Do next · 3

3 things worth doing in the week to Oct 27, the last indexed commit, 1 of them now.

Now

  • High

    Start breaking up mergeFrom (CCN 51, 132 lines): first lift lines 235-317

    internal/schemagen/model.go:235

    mergeFrom has many paths; easier to read and change once split; function changed in 11 commits; its file is imported by 16 files, changed 9 times in 90 days.

    gain
    +1.2 health on this file(inferred)
    health recoverable
    +1.2(inferred)
    size
    CCN 51, 132 lines
    steps
    2 (2 mechanical)

Worth planning

  • Break up UpdateReceivers (CCN 49, 155 lines)

    service/internal/graph/graph.go:530

    UpdateReceivers has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 6 files.

    gain
    up to +1.0 health on this file(inferred)
    finding
    Complex method
    size
    CCN 49, 155 lines, nests 4 deep
    severity
    high
    worth a check
  • Start breaking up run (CCN 57, 167 lines): first lift lines 253-267

    cmd/mdatagen/internal/command.go:253

    run has many paths; easier to read and change once split; function changed in 5 commits; its file is imported by 1 file, changed 5 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Complex method
    size
    CCN 57, 167 lines, nests 4 deep
    severity
    high
    worth a check

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report

Everything we found

6 areas