To easily test the OTEL functionality present in moby, you can spin up a small demo compose stack that includes:
The OTEL collector is configured to export Traces to both the Jaeger and Aspire containers.
The contrib/otel directory contains the compose file with the services configured, along with a basic configuration file for the OTEL collector.
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 (if running in a devcontainer or in other ways, you might have to change how you pass this env var to the daemon);docker compose up -d in the contrib/otel/ directory;http://localhost:16686 or the Aspire Dashboard at http://localhost:18888/traces;dockerd in the top left dropdownNote: The precise steps may vary based on how you're working on the codebase (buiding a binary and executing natively, running/debugging in a devcontainer, etc... )
Simply run docker compose down in the contrib/otel/ directory.
You can also run unset OTEL_EXPORTER_OTLP_ENDPOINT to get rid of the OTLP env var from your environment