Skip to content

Spigo won't build due to go-kit/metrics refactor (was: go run spigo.go) #78

@cmartin0077

Description

@cmartin0077

Looks like go-kit/kit changed and I am getting errors when starting spigo?

go run spigo.go
# github.com/adrianco/spigo/tooling/collect
tooling/collect/collect.go:32: too many arguments in call to "github.com/go-kit/kit/metrics/expvar".NewHistogram
tooling/collect/collect.go:48: cannot use int64(maxHistObservable) (type int64) as type float64 in argument to h.Observe
tooling/collect/collect.go:50: cannot use int64(d) (type int64) as type float64 in argument to h.Observe
tooling/collect/collect.go:68: undefined: metrics.PrintDistribution
tooling/collect/collect.go:98: h.Name undefined (type metrics.Histogram has no field or method Name)

Maybe I am doing something wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions