Giter Club home page Giter Club logo

Comments (4)

enisoc avatar enisoc commented on July 24, 2024

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!

from vitess.

fatih avatar fatih commented on July 24, 2024

@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.

from vitess.

enisoc avatar enisoc commented on July 24, 2024

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:

  1. A plugin for this trace package, to wrap the trace creation/annotation methods provided by the trace library you use into the expected interface.
  2. A plugin for golang.org/x/net/context to put/get trace spans in contexts, so spans can be passed around by only passing context (which we already do).
  3. If you want to associate traces across RPCs instead of just within a given process, you'd also need a patch to bsonrpc to serialize the trace ID into the request.

from vitess.

yaoshengzhe avatar yaoshengzhe commented on July 24, 2024

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.

from vitess.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.