- Run a Jaeger all-in-one Docker container (or any other OpenTelemetry collector).
- Install one of the Python OpenTelemetry exporters.
- Install
atoti-observability(this plugin). - Call
opentelemetry.trace.set_tracer_provider()at the start of the Python application. - Create spans in the application code for each major step.
When using different ports than the OpenTelemetry’s default ones, do not forget to set
os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] before calling atoti.Session.start() so that the Atoti Server launched in a subprocess inherits it and exports its telemetry data to the right place.Example
Here, the OpenTelemetry environment is already configured:atoti.Cube.query() generates some Python spans: