xmidt-org/caduceus

View on GitHub
metrics.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function Metrics has 120 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func Metrics() []xmetrics.Metric {
    return []xmetrics.Metric{
        {
            Name: IncomingQueueDepth,
            Help: "The depth of the queue behind the incoming handlers.",
Severity: Major
Found in metrics.go - About 3 hrs to fix

    exported function Metrics should have comment or be unexported
    Open

    func Metrics() []xmetrics.Metric {
    Severity: Minor
    Found in metrics.go by golint

    exported function NewMetricWrapperMeasures should have comment or be unexported
    Open

    func NewMetricWrapperMeasures(m CaduceusMetricsRegistry) metrics.Histogram {
    Severity: Minor
    Found in metrics.go by golint

    exported const ErrorRequestBodyCounter should have comment (or a comment on this block) or be unexported
    Open

        ErrorRequestBodyCounter         = "error_request_body_count"
    Severity: Minor
    Found in metrics.go by golint

    exported function CreateOutbounderMetrics should have comment or be unexported
    Open

    func CreateOutbounderMetrics(m CaduceusMetricsRegistry, c *CaduceusOutboundSender) {
    Severity: Minor
    Found in metrics.go by golint

    There are no issues that match your filters.

    Category
    Status