go-grpc-prometheus icon indicating copy to clipboard operation
go-grpc-prometheus copied to clipboard

Version 2 - promgrpc merge

Open piotrkowalczuk opened this issue 5 years ago • 6 comments

I'm the author of promgrpc (that, in fact, is using a lot of code from this repository). In reply to https://github.com/grpc-ecosystem/go-grpc-prometheus/issues/37#issuecomment-429737667 I would like to know if you are open to incorporate my version into your codebase/organization.

More about differences can be found here: https://github.com/grpc-ecosystem/go-grpc-prometheus/issues/37#issuecomment-428958682.

It would solve:

  • Decouple registration from grpc.Server implementation #17.
  • Implementing the grpc-go/stats.Handler interface #36.
  • Potentially #49 as well (if the name would be kept).

piotrkowalczuk avatar Oct 18 '18 08:10 piotrkowalczuk

@bwplotka how do you feel about this? I think in open in general about this. Of course we’ll want to go through things in detail but I do think there are a lot of good things in there and it would be nice to have a canonical lib.

brancz avatar Oct 18 '18 10:10 brancz

Of couse. I believe that there is a lot more value in making one thing better than having 2 separate implementations that does the same thing (:

bwplotka avatar Oct 18 '18 11:10 bwplotka

I'm glad to read that! I'm about to prepare a pull request. I'm wondering what would be the preferred way of doing it. Complete override, submodule or maybe a separate repo. Once PR is prepared we could go through it and change/adjust what is needed.

piotrkowalczuk avatar Oct 19 '18 08:10 piotrkowalczuk

I would say 3th option - merging (: Adopting your improvements here? Is that an option?

bwplotka avatar Oct 19 '18 14:10 bwplotka

@bwplotka It could be an option. To make it an iterative process separate v2 branch would be helpful. Then I could start to move features one by one.

piotrkowalczuk avatar Oct 19 '18 17:10 piotrkowalczuk

Here you go: https://github.com/grpc-ecosystem/go-grpc-prometheus/tree/draft-v2.0.0

bwplotka avatar Oct 20 '18 14:10 bwplotka