# Running your Application locally while sending DataDog traces

Application example is in `application` directory.

1. Build the app Docker image:

```bash
docker build -t application:local application
```

2. Run the application with DD-specific environment variables:

```bash
docker run -it --rm \
  -p 8000:8000 \
  -e DD_AGENT_HOST=dev-datadog-agent.dev.theorchard.io \
  -e DD_ENV=local \
  -e DD_SERVICE=application \
  -e DD_VERSION=1 \
  application:local
```

3. Access web endpoints:

```bash
curl -X GET -I http://localhost:8000/
curl -X GET -I http://localhost:8000/checkout
```
