git clone https://github.com/debovema/flogo-opentracing-sample.git
cd flogo-opentracing-sample
flogo ensure
Build the application:
flogo build -e
The binary is ready to be run in ./bin
directory.
docker run --name zipkin -d -p 9411:9411 openzipkin/zipkin
export FLOGO_OPENTRACING_IMPLEMENTATION=zipkin
export FLOGO_OPENTRACING_TRANSPORT=http
export FLOGO_OPENTRACING_ENDPOINTS=http://127.0.0.1:9411/api/v1/spans
If using Docker machine :
export FLOGO_OPENTRACING_IMPLEMENTATION=zipkin
export FLOGO_OPENTRACING_TRANSPORT=http
export FLOGO_OPENTRACING_ENDPOINTS=http://$(docker-machine ip $(docker-machine active)):9411/api/v1/spans
./bin/flogo-opentracing-sample
curl http://127.0.0.1:9233/test
Results are available at http://127.0.0.1:9411/zipkin/ (change 127.0.0.1 with IP of Docker machine if necessary).