Skip to content

Commit 6461653

Browse files
committed
add x-ray daemon setup
1 parent 5466c61 commit 6461653

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release-udp-exporter.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,32 @@ jobs:
2626
working-directory: exporters/aws-otel-otlp-udp-exporter
2727
run: hatch build
2828

29+
- name: Setup X-Ray daemon
30+
run: |
31+
# Download X-Ray daemon
32+
wget https://s3.us-east-2.amazonaws.com/aws-xray-assets.us-east-2/xray-daemon/aws-xray-daemon-linux-3.x.zip
33+
unzip aws-xray-daemon-linux-3.x.zip
34+
35+
# Create config file
36+
echo '{
37+
"TotalBufferSizeMB": 10,
38+
"Logging": {
39+
"LogLevel": "debug"
40+
}
41+
}' > xray-daemon-config.json
42+
43+
# Start X-Ray daemon with a unique log file
44+
mkdir -p daemon-logs
45+
./xray -o -n us-west-2 -c xray-daemon-config.json > daemon-logs/xray-daemon.log 2>&1 &
46+
echo "X-Ray daemon started with PID $!"
47+
48+
# Wait a bit for the daemon to start
49+
sleep 3
50+
51+
# Verify daemon is running
52+
ps aux | grep xray
53+
curl -s http://localhost:2000/GetDaemonVersion
54+
2955
- name: Setup validation app
3056
run: |
3157
mkdir -p validation_app
@@ -103,3 +129,17 @@ jobs:
103129
- name: Run validation test
104130
working-directory: validation_app
105131
run: python test_exporter.py
132+
133+
- name: Verify X-Ray daemon recieved traces
134+
run: |
135+
echo "X-Ray daemon logs:"
136+
cat daemon-logs/xray-daemon.log
137+
138+
# Check if the daemon received segments
139+
if grep -q "Received segment" daemon-logs/xray-daemon.log; then
140+
echo "✅ X-Ray daemon successfully received trace segments"
141+
exit 0
142+
else
143+
echo "❌ No trace segments received by X-Ray daemon"
144+
exit 1
145+
fi

0 commit comments

Comments
 (0)