https://github.com/dabcoder/docker-dd-apm
Sample app to use analyzed_spans
https://github.com/dabcoder/docker-dd-apm
Last synced: 28 days ago
JSON representation
Sample app to use analyzed_spans
- Host: GitHub
- URL: https://github.com/dabcoder/docker-dd-apm
- Owner: dabcoder
- License: mit
- Created: 2018-11-28T08:55:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T09:50:41.000Z (about 7 years ago)
- Last Synced: 2025-01-19T14:47:32.296Z (about 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-dd-apm
Sample app to use `analyzed_spans`
With Docker on MacOS:
- Build the flask app image with: `docker build -t flaskapp:1.0 .`
- Run it with `docker run -d -p 5000:5000 flaskapp:1.0`
- Download the Datadog agent image and run the agent container with:
```
docker run -d -p 127.0.0.1:8126:8126/tcp --name datadog-agent \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc/:/host/proc/:ro \
-v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
-e DD_API_KEY= \
-e DD_APM_ENABLED=true \
-e DD_APM_NON_LOCAL_TRAFFIC=true \
-e DD_APM_ANALYZED_SPANS="flask|flask.request=1,flask|flask.dispatch_request=1" \
datadog/agent:latest
```
- Run `curl 0.0.0.0:5000` a few times
- Check the APM page on Datadog - trace search