onflow / flowkit

Apache License 2.0
6 stars 10 forks source link

[BUG] Instrument grpc client with middleware #7

Closed bjartek closed 7 months ago

bjartek commented 7 months ago

Current Behavior

The builder to create a NewGrpcGateway does not allow sending in custom dialOpts. That means it is not possible to add middleware like loggers, retry, metrics aso.

In adition the fields in the gateway are private so this cannot be done from the outside.

Expected Behavior

It is possible to send in custom DialOpts when creating a gateway

Steps To Reproduce

not relevant

Environment

not relevant

What are you currently working on that this is blocking?

testing out flaky crescendo indexer and want to instrument grpc.