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

Add support for RemoteEndpoint in transport/client. #170

Merged
merged 2 commits into from
Aug 13, 2020

Conversation

dengliming
Copy link
Contributor

for #108

@jcchavezs Can you help to review these changes?

@coveralls
Copy link

coveralls commented Aug 11, 2020

Coverage Status

Coverage increased (+0.2%) to 61.144% when pulling a4d4e71 on dengliming:f_endpoint into c1d1eb5 on openzipkin:master.

@jcchavezs
Copy link
Contributor

jcchavezs commented Aug 11, 2020 via email

@jcchavezs jcchavezs mentioned this pull request Aug 11, 2020
@basvanbeek
Copy link
Member

Agree with @jcchavezs. We should allow for remote endpoint as functional option instead of only the service name.

@dengliming
Copy link
Contributor Author

@jcchavezs Hey~ just make sure I understand exactly what you mean. Do you mean like that?

type Client struct {
	*http.Client
	tracer            *zipkin.Tracer
	httpTrace         bool
	defaultTags       map[string]string
	transportOptions  []TransportOption
	remoteEndpoint *model.Endpoint
}

func WithRemoteEndpoint(remoteEndpoint *model.Endpoint) ClientOption {
	return func(c *Client) {
		c.remoteEndpoint = remoteEndpoint
	}
}

@jcchavezs
Copy link
Contributor

jcchavezs commented Aug 12, 2020 via email

@dengliming
Copy link
Contributor Author

@jcchavezs Can you review again? Thanks.

@jcchavezs
Copy link
Contributor

Thanks a lot!

@jcchavezs jcchavezs merged commit faa50ce into openzipkin:master Aug 13, 2020
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.

4 participants