Giter Site home page Giter Site logo

Configurable sample rate about zipkin-js HOT 5 CLOSED

openzipkin avatar openzipkin commented on August 16, 2024
Configurable sample rate

from zipkin-js.

Comments (5)

codefromthecrypt avatar codefromthecrypt commented on August 16, 2024

unlike sleuth, this project doesn't assume a specific configuration library. So, when you configure the library, you'd choose how to specify things like the sample rate. Example of wiring up is here:

https://github.com/openzipkin/zipkin-js/tree/master/packages/zipkin

Moving forward, I don't know what the status quo configuration tools are for browser or node apps. It may be the case that such libraries will turn-up, similar to how dropwizard-zipkin was made in java to bind dropwizard-style config on top of brave.

from zipkin-js.

huanli2 avatar huanli2 commented on August 16, 2024

I found the example have something wrong when i try to use it to set the sample rate for my project.
1,new zipkin.CountingSampler(0.01) should be new zipkin.sampler.CountingSampler(0.01)
2,missing two ","

from zipkin-js.

codefromthecrypt avatar codefromthecrypt commented on August 16, 2024

from zipkin-js.

huanli2 avatar huanli2 commented on August 16, 2024

pull request:
#77

actually, when I debug into the tracer code, and the sample rate can print correctly, but this configuration doesn't work with my express + zipkin-instrumentation-express.

"It may be the case that such libraries will turn-up, similar to how dropwizard-zipkin was made in java to bind dropwizard-style config on top of brave." do you have a release date or have a plan to fix it?

from zipkin-js.

nickcodefresh avatar nickcodefresh commented on August 16, 2024

Thanks guys, works a treat

from zipkin-js.

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.