opentelemetry-cpp/examples/zipkin
Tom Tan 0b1a74c7ab
Enable line-length lint for markdown docs (#1268)
2022-03-16 07:17:12 -07:00
..
CMakeLists.txt Extract foo library into a separate library (#1043) 2021-10-29 19:55:21 -07:00
README.md Enable line-length lint for markdown docs (#1268) 2022-03-16 07:17:12 -07:00
main.cc fix: issue 368- consistent namespace scope resolution (#1008) 2021-11-15 19:53:34 -08:00

README.md

Zipkin Exporter Example

This is an example of how to use the Zipkin exporter.

The application in main.cc initializes an ZipkinExporter instance and uses it to register a tracer provider from the OpenTelemetry SDK. The application then calls a foo_library which has been instrumented using the OpenTelemetry API.

Resulting spans are exported to the Zipkin server using the Zipkin exporter.

Note that the Zipkin exporter connects to the server at localhost:9411 by default.

Running Zipkin server locally

The quick way to run the Zipkin server is using Docker container :

``console

$ docker run -d -p 9411:9411 openzipkin/zipkin

``

Running Zipkin example

Build this example using instructions in INSTALL.md.

Viewing the traces

Please visit the Zipkin UI endpoint http://localhost:9411