Skip to content

kitgen enhancement: generation of logging and metrics middlewares #910

@shkov

Description

@shkov

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions