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

Restore the original Registrar interface #480

Merged
merged 3 commits into from
Aug 9, 2016

Conversation

yurishkuro
Copy link
Contributor

Extending Registrar interface in #426 caused compile errors in ringpop-go. This change restores the original Registrar interface and pulls the tracer from it by casting to TracerProvider

@@ -34,6 +34,11 @@ import (
"golang.org/x/net/context"
)

// TracerProvider returns an OpenTracing Tracer
type TracerProvider interface {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any advantages to having this be public? While the other option would duplicate the interface, I wonder if it's better to keep the tchannel API smaller

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, the only reason is that it's used from json and thrift packages. But we could have a public helper method in tracing.go to extract the tracer from the registrar, wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separate public method seems a little better, let's do that.

Yuri Shkuro added 2 commits August 9, 2016 01:08

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@prashantv
Copy link
Contributor

lgtm

@yurishkuro yurishkuro merged commit 74a9d82 into dev Aug 9, 2016
@prashantv prashantv deleted the remove-tracer-from-registrar branch January 5, 2017 23:11
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.

None yet

2 participants