Skip to content

Commit 8d3b0fc

Browse files
author
Michael Wunderlich
committed
simplify X-Ray daemon config
1 parent 228f5f8 commit 8d3b0fc

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.ebextensions/xray.config

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
commands:
2-
01-stop-tracing:
3-
command: yum remove -y xray
4-
ignoreErrors: true
5-
02-copy-tracing:
6-
command: curl https://s3.amazonaws.com/aws-xray-assets.us-east-1/xray-daemon/aws-xray-daemon-1.x.rpm -o /home/ec2-user/xray.rpm
7-
03-start-tracing:
8-
command: yum install -y /home/ec2-user/xray.rpm
1+
option_settings:
2+
aws:elasticbeanstalk:xray:
3+
XRayEnabled: true
94

105
files:
116
"/opt/elasticbeanstalk/tasks/taillogs.d/xray-daemon.conf" :
@@ -14,10 +9,3 @@ files:
149
group: root
1510
content: |
1611
/var/log/xray/xray.log
17-
"/etc/amazon/xray/cfg.yaml" :
18-
mode: "000644"
19-
owner: root
20-
group: root
21-
content: |
22-
Logging:
23-
LogLevel: "warn"

0 commit comments

Comments
 (0)