Skip to content

Commit

Permalink
Use v0.41.1 for otel collector.
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhlogin committed Dec 23, 2024
1 parent 05929c9 commit f9aad68
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 25 deletions.
8 changes: 4 additions & 4 deletions .github/collector/collector-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ receivers:
endpoint: 0.0.0.0:4317

exporters:
debug:
verbosity: normal
logging:
loglevel: info
awsxray:
region: us-west-2
awsemf:
Expand All @@ -21,11 +21,11 @@ service:
receivers:
- otlp
exporters:
- debug
- logging
- awsxray
metrics:
receivers:
- otlp
exporters:
- debug
- logging
- awsemf
2 changes: 1 addition & 1 deletion .github/collector/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.7"
services:
otel:
image: amazon/aws-otel-collector:latest
image: amazon/aws-otel-collector:v0.41.1
command: --config /config/collector-config.yml
environment:
- AWS_ACCESS_KEY_ID
Expand Down
49 changes: 29 additions & 20 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,27 +88,36 @@ jobs:
with:
arguments: build integrationTests --stacktrace -PenableCoverage=true -PlocalDocker=true

- name: Set up Java version for tests
uses: actions/setup-java@v4
- e2e-test:
needs: [ build, default-region-output ]
uses: ./.github/workflows/e2e-tests-app-with-java-agent.yml
secrets: inherit
with:
java-version: 23
distribution: temurin

- name: Pull base image of Contract Tests Sample Apps
if: ${{ matrix.os == 'ubuntu-latest' }}
run: docker pull public.ecr.aws/docker/library/amazoncorretto:23-alpine

- name: Run contract tests
uses: gradle/gradle-build-action@v3
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
arguments: contractTests -PlocalDocker=true -i

- name: Set up Java version for image build
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
aws-region: ${{ needs.default-region-output.outputs.aws_default_region }}
image_tag: ${{ github.sha }}
caller-workflow-name: 'main-build'

# - name: Set up Java version for tests
# uses: actions/setup-java@v4
# with:
# java-version: 23
# distribution: temurin
#
# - name: Pull base image of Contract Tests Sample Apps
# if: ${{ matrix.os == 'ubuntu-latest' }}
# run: docker pull public.ecr.aws/docker/library/amazoncorretto:23-alpine
#
# - name: Run contract tests
# uses: gradle/gradle-build-action@v3
# if: ${{ matrix.os == 'ubuntu-latest' }}
# with:
# arguments: contractTests -PlocalDocker=true -i
#
# - name: Set up Java version for image build
# uses: actions/setup-java@v4
# with:
# java-version: 17
# distribution: temurin

- name: Get current version
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand Down

0 comments on commit f9aad68

Please sign in to comment.