ot-chat
reconstructs sockets.io's chat example
using Boost.Beast and instruments it for
distributed tracing.
Examples have been set up with docker-compose
for LightStep, Jaeger, and
Zipkin. To run, follow these instructions:
# LightStep
cd lightstep
export LIGHTSTEP_ACCESS_TOKEN=<your access token>
docker-compose up
# Jaeger
cd jaeger
docker-compose up
# Zipkin
cd zipkin
docker-compose up
Then visit http://localhost:8080
.
ot-chat
demonstrates
- Pluggable tracing using OpenTracing's dynamic loading API. See
load_tracer
in configuration.cpp. - Embedding of the tracer's JSON configuration with the application's configuration. See configuration.proto.
- Context propagation with JavaScript using a JSON text map encoding. See message.cpp and index.html.in.