The sample app use OpenTelemetry instrumentation and is configured to send trace data to the OpenTelemetry Collector (which is a separate app also started by docker-compose).
- Python-instrumentation docs: https://opentelemetry-python.readthedocs.io/en/stable/getting-started.html
Looking at authenticationService.py as an example, we’re configuring the instrumentation here: data-prepper/authenticationService.py at main · opendistro-for-elasticsearch/data-prepper · GitHub.
This allows data to be sent to the OTel Collector, which then sends to Data Prepper.