This example shows how to use the OpenCensus Exporter to export traces to the OpenTelemetry collector.
The source files of this example are available here.
pip install opentelemetry-api
pip install opentelemetry-sdk
pip install opentelemetry-exporter-opencensus
Run the Example¶
Before running the example, it’s necessary to run the OpenTelemetry collector
and Jaeger. The docker
folder contains a
docker-compose template with the configuration of those
pip install docker-compose
Now, the example can be executed:
The traces are available in the Jaeger UI at http://localhost:16686/.