Skip to content

rnburn/ot-chat

Repository files navigation

ot-chat-example

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

  1. Pluggable tracing using OpenTracing's dynamic loading API. See load_tracer in configuration.cpp.
  2. Embedding of the tracer's JSON configuration with the application's configuration. See configuration.proto.
  3. Context propagation with JavaScript using a JSON text map encoding. See message.cpp and index.html.in.

About

Example of OpenTracing's plugin approach

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published