test project sending OpenTelemetry traces in OTLP to datadog-agent
docker
docker-compose
- a valid datadog api key
DD_API_KEY=<valid_api_key> make run
make curl
: issues an Http request to the running service.
Default path is /redis/${KEY}
.
To override the key for redis: KEY=<my_key> make curl
.
To change to a different route: ROUTE=/foo make curl
.
Supported routes:
/
/ot
/redis/<key>
make stop
- [terminal 0] start the service on.
- [terminal 1] run
make ssh
and you're insidedatadog-agent
container as root. - [terminal 1] run
apt update && apt install -y net-tools tcpdump
- [terminal 1] verify connections:
netstat -apln
- [terminal 1] start tcpdump for trace related ports:
tcpdump -nnA -s 0 -i any "port 4317 or 5003"
- [terminal 2] run
make curl
- [terminal 0] observe
stdout
: a otlp console exporter is active in the pipeline. - [terminal 1] observe
tcpdump
output:4317
port receives the trace telemetry but not5003