Instrumenting your application in Docker Compose
This is just a neat trick that allows you to collect observability data from your application running via Docker Compose without changing the original docker-compose.yml file. We accomplish this by using an override file that will add the OTEL agent and set the appropriate environment variables which we can use in dev/test.
Download the latest OTEL agent
Add a Docker Compose override file
Create a supplementary Docker Compose file that will include the agent files and provide the environment variables to export tracing data to Digma.
To retrieve the environment identifier see the instructions on the environment page.
Run your original Docker Compose file along with the override file
PreviousInstrumenting your code in CI/Staging or the terminalNextInstrumenting your application on Kubernetes
Last updated