I maintain a large enough project and i spend a lot of time when i write middlewares for collecting metrics or logs. I mean middlewares like this:
https://github.com/go-kit/kit/blob/master/examples/stringsvc3/instrumenting.go#L10
or
https://github.com/go-kit/kit/blob/master/examples/stringsvc3/logging.go#L9
It may not necessarily be a wrapper over a service. Also I would like to be able to wrap various objects like storage or something else.
Do you want to make it possible to generate some kinds of middlewares by kitgen? If you find this useful i would like to work on it and contribute.
I maintain a large enough project and i spend a lot of time when i write middlewares for collecting metrics or logs. I mean middlewares like this:
or
It may not necessarily be a wrapper over a service. Also I would like to be able to wrap various objects like storage or something else.
Do you want to make it possible to generate some kinds of middlewares by kitgen? If you find this useful i would like to work on it and contribute.