flogo-opentracing-sample

module
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2018 License: BSD-3-Clause

README

Sample for Flogo OpenTracing listener

Getting started

Clone this repository
git clone https://github.com/debovema/flogo-opentracing-sample.git
cd flogo-opentracing-sample
Ensure dependencies
flogo ensure
Build and run

Build the application:

flogo build -e

The binary is ready to be run in ./bin directory.

Configure a collector

Start Zipkin over HTTP
docker run --name zipkin -d -p 9411:9411 openzipkin/zipkin
Export environment variables
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

Test

Start the executable
./bin/flogo-opentracing-sample
Call the service
curl http://127.0.0.1:9233/test
Traces

Results are available at http://127.0.0.1:9411/zipkin/ (change 127.0.0.1 with IP of Docker machine if necessary).

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL