Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed Oct 11, 2023
1 parent 60e781f commit 3fd7593
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
with:
go-version: "1.21.0"
cache-dependency-path: "**/*.sum"
- name: Cache Go dependencies
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set OTEL Exporter Endpoint
run: echo "OTEL_EXPORTER_ENDPOINT=http://172.17.0.1:8080" >> $GITHUB_ENV
- name: Run tests
run: |
cd integration-tests/tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exporters:
logging:

otlphttp:
endpoint: http://host.docker.internal:8080
endpoint: ${OTEL_EXPORTER_ENDPOINT}


connectors:
Expand Down
2 changes: 2 additions & 0 deletions integration-tests/tests/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ services:
ports:
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP exporter
environment:
- OTEL_EXPORTER_ENDPOINT=${OTEL_EXPORTER_ENDPOINT:-http://host.docker.internal:8080}

demo-client:
build:
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/tests/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cleanup() {
cat "$logfile"
echo "Capturing logs from otel-collector..."
docker ps
docker logs tests_otel-collector_1
docker logs tests_otel-collector_1 || true
docker-compose down
fi
kill $AGENT_PID || true
Expand Down

0 comments on commit 3fd7593

Please sign in to comment.