If you want to add OpenTelemetry to the services in an existing docker-compose.yml
you can use a
docker-compose.override.yml
to do so without touching your existing file.
Imagine you have three services listed called frontend
, processing
and backend
in your compose file.
Two of them are written in Java, one of them in Node.JS. Create the following docker-compose.override.yml
file alongside your docker-compose.yml
to inject the Java agent and the @opentelemetry/auto-instrumentations-node
package into them: