Git Product home page Git Product logo

go-zipkin-sample's Introduction

go-zipkin-sample

This project is a toy example of how to use the github.com/spacemonkeygo/monitor/trace Zipkin client library.

There's a random number service that just returns random numbers, and there's a random message service that returns a random word from the list "hello, world", using the random number service. Both services send Zipkin spans to the collector service over UDP, which sends the spans to Zipkin directly.

First, build the following binaries:

  • github.com/jtolds/go-zipkin-sample/bin/collector
  • github.com/jtolds/go-zipkin-sample/bin/rand
  • github.com/jtolds/go-zipkin-sample/bin/ui

Then, after starting Zipkin locally (https://github.com/itszero/docker-zipkin is helpful), run all three services (./rand & ./ui & ./collector &)

When you make a request to http://localhost:8079, a full Zipkin trace will be sent to your Zipkin collector.

Screenshot of Zipkin trace

Screenshot

go-zipkin-sample's People

Contributors

dmelani avatar jtolio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

go-zipkin-sample's Issues

Running sample does not produce any trace information

I am new to zipkin and I was trying to familiarize myself with the library by running your script. But unfortunately I didn't manage to send any trace information to the zipkin collector.

In fact, the two processes (ui and rand) do not seem to be sending any information to the collector process.

Am I missing something or do I have to configure something on zipkin server?

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.