- Docker and docker compose.
LIGHTSTEP_SATELLITE_KEY
LIGHTSTEP_ACCESS_TOKEN
$ chmod +x ./startup.sh
$ ./startup.sh
curl -X GET http://localhost:8000/mock/request -H 'Host: mockbin.org'
Go to http://app.lightstep.com/<YOUR_PROJECT>/explorer
to see the traces.
$ chmod +x ./shutdown.sh
$ ./shutdown.sh
<LIGHTSTEP_SATELLITE_KEY>
$ docker-compose up -d
The compose file starts up a Postgres container, intiatlizes it with the Kong migrations, and runs a LightStep Satellite, connecting them all within a network.
- Kong runs the Admin API on Port 8001.
collector_host
should point to the satellite host, aliased assatellite
within the docker-compose networkcollector_port
should point to the configured satelliteHTTP_PLAIN_PORT
of the container, not the host machine.
curl -X POST \
--url "localhost:8001/plugins" \
--data 'name=lightstep' \
--data 'config.access_token=<YOUR_LIGHTSTEP_ACCESS_TOKEN>' \
--data 'config.collector_plaintext=true' \
--data 'config.collector_host=satellite' \
--data 'config.collector_port=8182'
curl -X POST \
--url "http://localhost:8001/services/" \
--data "name=mock-service" \
--data "url=http://mockbin.org"
curl -X POST \
--url "http://localhost:8001/services/mock-service/routes" \
--data "hosts[]=mockbin.org" \
--data "paths[]=/mock"
curl -X GET http://localhost:8000/mock/request -H 'Host: mockbin.org'
Go to http://app.lightstep.com/<YOUR_PROJECT>/explorer
to see the traces.
$ docker-compose down
Start a Developer Satellite to test spans reporting to LightStep
Currently tested on Kong v1.4.x Mac installation
Install Kong:
$ brew tap kong/kong && brew install kong
$ mkdir {{/path/to/kong/working/directory}}
$ cd {{/path/to/kong/working/directory}}
$ kong config init
$ touch kong.conf
prefix = {{/path/to/kong/working/directory}}
log_level = debug
mem_cache_size = 128m
database = off
declarative_confg = {{/path/to/kong/working/directory}}/kong.yml
db_cache_ttl = 0
lua_package_path = {{/path/to/kong-plugin-lightstep}}/?.lua
$ cd {{/path/to/kong-plugin-lightstep}}
$ kong start -c {{/path/to/kong/working/directory}}/kong.conf
Kong's Admin API is exposed on port 8001. Visit localhost:8001
to see that the LightStep and key-auth plugins have been enabled
Kong's Proxy is exposed on port 8000.
curl -X GET http://localhost:8000/mock/request \
-H 'Host: mockbin.org' \
-H 'apikey: test-key'
Go to http://app.lightstep.com/<YOUR_PROJECT>/developer-mode
to see the traces.
$ kong stop -p {{/path/to/kong/working/directory}}