Skip to content
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

Any news on client interceptors becoming stable? #3693

Closed
phil-f opened this issue Jun 13, 2020 · 8 comments
Closed

Any news on client interceptors becoming stable? #3693

phil-f opened this issue Jun 13, 2020 · 8 comments

Comments

@phil-f
Copy link

phil-f commented Jun 13, 2020

type UnaryClientInterceptor func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, invoker UnaryInvoker, opts ...CallOption) error

type StreamClientInterceptor func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, streamer Streamer, opts ...CallOption) (ClientStream, error)

As the title says, these extremely useful pieces of functionality have been labelled as experimental for a while.

Would be nice to hear if there's any news on them becoming stable as using outgoing middleware in prod would be great :). If there's another way to implement outgoing middleware that isn't experimental then pointers to that would be much appreciated.

@dfawley
Copy link
Member

dfawley commented Jun 25, 2020

My guess is, at this point, enough people are using it that it would be extremely difficult to change, even though it's technically allowed by our versioning policy. Also, some interceptors are experimental and some are not, probably due to an oversight before GA. We can go ahead and call these "stable".

@phil-f
Copy link
Author

phil-f commented Jul 9, 2020

ah that's great news! thanks for the info :)

@phil-f phil-f closed this as completed Jul 9, 2020
@dfawley
Copy link
Member

dfawley commented Jul 9, 2020

Let's leave this open to cover making them stable.

@hypnoglow
Copy link
Contributor

Hi!

What needs to be done to close this issue? Is it just removing comments about experimental API or anything else?

Thanks

@dfawley
Copy link
Member

dfawley commented Oct 5, 2020

In addition to removing the "experimental" comments, we should improve their documentation comments a bit -- e.g. what the parameters/return values are, when they are called, etc.

@hypnoglow
Copy link
Contributor

@dfawley I opened #3948

I added additional commentary on parameters and return values etc. as far as I understand them. Please let me know if we need to rephrase/add/remove something in those comments.

@hypnoglow
Copy link
Contributor

@dfawley As the PR with updates to documentation is merged, I think this issue can be closed.

@dfawley
Copy link
Member

dfawley commented Nov 2, 2020

That's right, thanks for following up.

@dfawley dfawley closed this as completed Nov 2, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants