-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to access the managed channels? #741
Comments
Currently, there is no way to access the ManagaedChannels directly. It is planned though. Why do you wish to warmup the dns resolvers? One way to do that (per channel) is to send a request to the channel. E.g. a health request. |
That is a good idea. But the problem is that the service doesn't have health check methods! (Unless there is another way 🙈 ) |
You dont have to use an existing method/valid input. |
The problem is that we have many interceptors that check some data and I don't want to bypass those, so if I provide the wrong data, the call will not happen, that is why it is not an option for me. And regarding your statement:
Can I help somehow with that implementation? I can dedicate time to that. |
There are two parts that I would like to do.
From an architectural perspective it should look somewhat like this: Which part do you wish to tackle?
|
I would start with the first one |
Awesome. The public API of the injector should be somewhat like this:
Where T is the type of the field and |
My case is integration test. I need to inspect some behaviour and signup to ManagedChannel.notifyWhenStateChanged. I very need this feature. |
Hello, I am trying to access the managed channels in order to warm up the DNS resolver.
I mean I want the channel to resolve the service host after the application is started. But I couldn't access the managed channels in any way!
So is there a way to do so? or is there any workaround?
Many thanks
The text was updated successfully, but these errors were encountered: