Skip to content

Commit dc6ba37

Browse files
authored
Migrate logging to debug exporter to match with latest otel colletor. (aws-observability#984)
*Description of changes:* The previous [ADOT Java main build failed](https://github.com/aws-observability/aws-otel-java-instrumentation/actions/runs/12421612708) because of it is using the collector version v0.42.0 released 8 hours ago, where the logging exporter has been deprecated. This PR migrate to debug exporter according to: open-telemetry/opentelemetry-collector#11337. Also, add a step in PR build to clean up the storage to avoid "No space left in the device" failure. Same fix has been applied to v2.x branch: aws-observability#979 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 448d680 commit dc6ba37

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/collector/collector-config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ receivers:
55
endpoint: 0.0.0.0:4317
66

77
exporters:
8-
logging:
9-
loglevel: info
8+
debug:
9+
verbosity: normal
1010
awsxray:
1111
region: us-west-2
1212
awsemf:
@@ -21,11 +21,11 @@ service:
2121
receivers:
2222
- otlp
2323
exporters:
24-
- logging
24+
- debug
2525
- awsxray
2626
metrics:
2727
receivers:
2828
- otlp
2929
exporters:
30-
- logging
30+
- debug
3131
- awsemf

.github/workflows/pr-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ jobs:
6363

6464
- uses: gradle/wrapper-validation-action@v1
6565

66+
# Cleanup directories before proceeding with setup
67+
- name: Clean up old installations
68+
if: ${{ matrix.os != 'windows-latest' }}
69+
run: |
70+
sudo rm -rf /usr/local/lib/android
71+
sudo rm -rf /usr/share/dotnet
72+
6673
# cache local patch outputs
6774
- name: Cache local Maven repository
6875
uses: actions/cache@v3

0 commit comments

Comments
 (0)