-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 is one supposed to initialize spanFactory? #248
Comments
The trace library we use ourselves is an internal tool, so that's why the default implementation is a no-op. I agree that it would be more useful if you could register plugins from outside the package. I'll work on that. Thanks for the suggestion! |
@enisoc Thanks a lot! :) Is there any public implementation of this trace factory? I'll try to implement one but having a look at other implementations would make it better, at least I would know what I should take care of. |
I don't think there's a public version of the particular trace library we use, but it should be possible to find one that can be plugged in. The main things you'd need are:
|
I would suggest Twitter's zipkin (http://twitter.github.io/zipkin/). I've seen folks outside Twitter use it and the project itself seems mature. |
Sorry if I miss something but I couldn't find anything so I need to ask it here :) The comment for
spanFactory
says (https://github.com/youtube/vitess/blob/master/go/trace/trace.go#L60):As I playing with the
rpcplus
package, the methods ofrpcplus.Client
is calling the following lines (Go method):I dig into it and saw that it uses a no-op implementation (fakeSpan). I can't change the Span interface. The
spanFactory
variable is not exported I don't have any access to it. I've searched for the whole git repo and couldn't find any other implementation too.Is that used? If yes how should we use it? If not can we export it so I have access to it, otherwise it's seems pretty useless for third-party package users.
The text was updated successfully, but these errors were encountered: