Fantom-foundation/go-lachesis

View on GitHub
metrics/prometheus/adapter.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Metric.Write has 67 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (m *Metric) Write(out *dto.Metric) error {
    switch metric := m.m.(type) {

    case metrics.Meter:
        t := metric.Snapshot()
Severity: Minor
Found in metrics/prometheus/adapter.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status