Convert the metrics subsystem to the explicit composition-root form:
Mount(app *zip.App, deps metrics.Deps) with a narrow Deps{Logger,DataDir,Brand}.
Drops github.com/hanzoai/cloud and github.com/hanzoai/zip; imports zap-proto/zip
+ luxfi only. No init(), no cloud.Register. go build/vet/test green; dependency
graph free of hanzoai/cloud and hanzoai/zip.
50 lines
1.9 KiB
AMPL
50 lines
1.9 KiB
AMPL
module github.com/hanzoai/metrics
|
|
|
|
go 1.26.4
|
|
|
|
require (
|
|
github.com/luxfi/log v1.4.3
|
|
github.com/luxfi/metric v1.5.8
|
|
github.com/luxfi/zap v0.7.2
|
|
github.com/zap-proto/zip v1.2.0
|
|
)
|
|
|
|
require (
|
|
github.com/andybalholm/brotli v1.2.1 // indirect
|
|
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
|
|
github.com/cloudflare/circl v1.6.3 // indirect
|
|
github.com/dlclark/regexp2/v2 v2.2.1 // indirect
|
|
github.com/dop251/goja v0.0.0-20260607120635-348e6bea910d // indirect
|
|
github.com/evanw/esbuild v0.28.1 // indirect
|
|
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
|
|
github.com/gofiber/fiber/v3 v3.2.0 // indirect
|
|
github.com/gofiber/schema v1.7.1 // indirect
|
|
github.com/gofiber/utils/v2 v2.0.4 // indirect
|
|
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/gorilla/rpc v1.2.1 // indirect
|
|
github.com/grandcat/zeroconf v1.0.0 // indirect
|
|
github.com/klauspost/compress v1.18.5 // indirect
|
|
github.com/luxfi/accel v1.1.9 // indirect
|
|
github.com/luxfi/crypto v1.19.17 // indirect
|
|
github.com/luxfi/mdns v0.1.1 // indirect
|
|
github.com/mattn/go-colorable v0.1.14 // indirect
|
|
github.com/mattn/go-isatty v0.0.21 // indirect
|
|
github.com/miekg/dns v1.1.72 // indirect
|
|
github.com/philhofer/fwd v1.2.0 // indirect
|
|
github.com/tinylib/msgp v1.6.4 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/valyala/fasthttp v1.70.0 // indirect
|
|
github.com/zap-proto/go v1.3.0 // indirect
|
|
github.com/zap-proto/http v0.2.0 // indirect
|
|
golang.org/x/crypto v0.52.0 // indirect
|
|
golang.org/x/mod v0.36.0 // indirect
|
|
golang.org/x/net v0.55.0 // indirect
|
|
golang.org/x/sync v0.20.0 // indirect
|
|
golang.org/x/sys v0.45.0 // indirect
|
|
golang.org/x/text v0.37.0 // indirect
|
|
golang.org/x/tools v0.45.0 // indirect
|
|
google.golang.org/protobuf v1.36.11 // indirect
|
|
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
|
)
|