You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package looks super useful, but I wound up not using it because it has a bunch of deps on several different HTTP frameworks, which significantly increased the size of our go.sum.
It would be nicer to have a "plugin" model where you go get each framework-specific plugin separately, to avoid dependency bloat. (IMO the built-in "net/http" plugin could be included in this repo but the other 3rd-party frameworks should be separate repos).
The text was updated successfully, but these errors were encountered:
The library tackles already the problem you are saying, when you import go-http-metrics, each of the library/framework dependency has its own package for this reason so you don't import all of them.
Regarding the go.sum thing, we can't do anything about that, it's how Go stores the data.
Anyway IMHO, having those lines in the go.sum is not a big deal while the dependencies don't end up on the application. In the end is just a text file for computers, not humans (contrary to go.mod that is common to read it).
This package looks super useful, but I wound up not using it because it has a bunch of deps on several different HTTP frameworks, which significantly increased the size of our
go.sum
.It would be nicer to have a "plugin" model where you
go get
each framework-specific plugin separately, to avoid dependency bloat. (IMO the built-in "net/http" plugin could be included in this repo but the other 3rd-party frameworks should be separate repos).The text was updated successfully, but these errors were encountered: