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

feat(client): adds HttpInfo to responses when HttpConnector is used #1594

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

seanmonstar
Copy link
Member

  • Adds client::connect::Connected::extra(), which allows connectors to
    specify arbitrary custom information about a connected transport.

If a connector provides this extra value, it will be set in the
Response extensions.

Closes #1402


This is an alternative to #1592

@sfackler
Copy link
Contributor

sfackler commented Aug 1, 2018

Anything blocking this?

@seanmonstar
Copy link
Member Author

@sfackler I'd been waiting on the work in Linkerd to test it out before merging, in case there were any changes needed. It also allows for people to tell me it's a good or stupid idea :D

@sfackler
Copy link
Contributor

sfackler commented Aug 2, 2018

This seems pretty reasonable to me API wise. I actually have a FIXME in some code to attach the remote address to our Zipkin tracing info that this feature would support. :)

@kamalmarhubi
Copy link

@seanmonstar how long do you think it'll be for this to steep? I want to take a crack at seanmonstar/warp#9 which I believe is ultimately blocked on this.

@seanmonstar
Copy link
Member Author

This is a PR for the client, so I don't think it will help with that feature in warp...

@kamalmarhubi
Copy link

Serves me right for the very quick search and glance...

- Adds `client::connect::Connected::extra()`, which allows connectors to
  specify arbitrary custom information about a connected transport.

If a connector provides this extra value, it will be set in the
`Response` extensions.

Closes #1402
@seanmonstar seanmonstar merged commit 13d53e1 into master Oct 16, 2018
@seanmonstar seanmonstar deleted the client-transport-extra branch October 16, 2018 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants