GitXplorerGitXplorer
b

opentracing-example

public
39 stars
34 forks
1 issues

Commits

List of commits on branch master.
Unverified
832dc7d0664d13b4a59905fd316ab6362eeaea88

Merge pull request #2 from bsr203/issue#1

bbg451 committed 8 years ago
Unverified
10f99d461c635c957cc6231ce2e93c0d5854316f

rename HTTPHeaderTextMapCarrier -> HTTPHeadersCarrier

committed 8 years ago
Unverified
fd1148eceb1297b3418d6b9489b364562c450619

Upgrade opentracing

committed 9 years ago
Unverified
e059b2d1282ba7fc3fcd13b4d23cc1d7737f8a69

Update flags and add pictures

committed 9 years ago
Unverified
24eb063f907f7912b445a92d99ee121396d0f1c1

Adds docker stuff

committed 9 years ago
Unverified
2f96b6a1ce5f08adbe748367b1022a04e7fdc34b

Ignore binary

committed 9 years ago

README

The README file for this repository.

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