Coder Social home page Coder Social logo

opentracing-example's Introduction

Example Opentracing App

Building

Make sure that you have Go installed, then run go build. If you are missing dependencies, run go get ./.... Alternatively, you can build the application using docker by running scripts/docker_build.sh.

Running

This is a trivial example app that demonstrates how OpenTracing can be used with!

To run the program, run ./opentracing-example. This will, by default, start a new Appdash server and write all of your traces to it. However, if you want to use a different tracer system, i.e. LightStep, all you have to do is pass the flag --lightstep.token=ACCESS_TOKEN.

Docker

A prebuilt docker image already exists. Run docker run --rm -ti -p 8080:8080 -p 8700 bg451/opentracing-example. If you run the docker image, you might not be able to access the various endpoints through localhost. If using docker machine. docker-machine ip MY_MACHINE will give you the IP you should access the addresses at, i.e. 123.45.67.123:8700/traces.

Todo

  • Add a second process that's in a different language, i.e. python.

Screenshots

Appdash

alt text

Lightstep

Lightstep

opentracing-example's People

Contributors

bg451 avatar

Watchers

 avatar

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.