Skip to content

Commit

Permalink
rename scripts/setup-otel.sh -> scripts/setup-jeager-and-otel.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
  • Loading branch information
Mossaka committed Jan 9, 2025
1 parent bd7de1c commit 3914cd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action-test-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Enable OTLP
if: ${{ inputs.runtime == 'wasmtime' }}
run: |
sudo ./scripts/setup-otel.sh
sudo ./scripts/setup-jeager-and-otel.sh
- name: Run wasi-demo-app using ctr
timeout-minutes: 5
run: |
Expand Down
4 changes: 3 additions & 1 deletion scripts/setup-otel.sh → scripts/setup-jeager-and-otel.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -euxo pipefail

# start jeager endpoint
docker run -d -p16686:16686 -p4317:4317 -p4318:4318 -e COLLECTOR_OTLP_ENABLED=true jaegertracing/all-in-one:latest
Expand All @@ -11,7 +12,8 @@ mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF > /etc/systemd/system/containerd.service.d/override.conf
[Service]
Environment="OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318"
Environment="OTEL_SERVICE_NAME=wasmtime"
Environment="OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf"
Environment="OTEL_SERVICE_NAME=containerd"
EOF

systemctl daemon-reload
Expand Down

0 comments on commit 3914cd1

Please sign in to comment.