zitadel / zitadel-go

ZITADEL Go - The official client library of ZITADEL for an easy integration into your Go project.
https://zitadel.com
Apache License 2.0
63 stars 22 forks source link

Add ability to collect outgoing grpc metrcs #349

Open sashayakovtseva opened 1 week ago

sashayakovtseva commented 1 week ago

Hello!

I am using github.com/zitadel/zitadel-go/v3/pkg/client to manage Zitadel from my application and I'd like to monitor my outgoing requests.

While there is one way of doing so by writing a custom Zitadel client wrapper that collects metrics, I think it would be better and easier for end users to pass prometheus interceptor (https://github.com/grpc-ecosystem/go-grpc-middleware/tree/main/providers/prometheus) directly to grpc connection.

Would you consider adding new client.Option for this purpose?

fforootd commented 1 week ago

I think this could be a great addition 👍

WDYT @zitadel/engineers