Skip to content

Commit fb72be9

Browse files
authored
Merge branch 'main' into add-checksum
2 parents d785e7e + e66eb4d commit fb72be9

File tree

64 files changed

+2235
-693
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2235
-693
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/patches/opentelemetry-java-instrumentation.patch

Lines changed: 1818 additions & 432 deletions
Large diffs are not rendered by default.

.github/patches/versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
OTEL_JAVA_INSTRUMENTATION_VERSION=v1.33.6
1+
OTEL_JAVA_INSTRUMENTATION_VERSION=v2.10.0

.github/workflows/docker-build-smoke-tests-fake-backend.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ jobs:
2525
with:
2626
java-version: 17
2727
distribution: 'temurin'
28+
# cache local patch outputs
29+
- name: Cache local Maven repository
30+
uses: actions/cache@v3
31+
with:
32+
path: |
33+
~/.m2/repository/io/opentelemetry/
34+
key: ${{ runner.os }}-maven-local-${{ hashFiles('.github/patches/opentelemetry-java*.patch') }}
35+
36+
- name: Publish patched dependencies to maven local
37+
uses: ./.github/actions/patch-dependencies
38+
with:
39+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
40+
gpg_password: ${{ secrets.GPG_PASSPHRASE }}
2841
- uses: gradle/wrapper-validation-action@v1
2942
- name: Configure AWS Credentials
3043
uses: aws-actions/configure-aws-credentials@v4

.github/workflows/main-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
fetch-depth: 0
195195
- uses: actions/setup-java@v4
196196
with:
197-
java-version: 21
197+
java-version: 23
198198
distribution: 'temurin'
199199
- uses: gradle/wrapper-validation-action@v1
200200

@@ -219,7 +219,7 @@ jobs:
219219
key: ${{ runner.os }}-maven-local-${{ hashFiles('.github/patches/opentelemetry-java*.patch') }}
220220

221221
- name: Pull base image of Contract Tests Sample Apps
222-
run: docker pull public.ecr.aws/docker/library/amazoncorretto:21-alpine
222+
run: docker pull public.ecr.aws/docker/library/amazoncorretto:23-alpine
223223

224224
- name: Build snapshot with Gradle
225225
uses: gradle/gradle-build-action@v3

.github/workflows/nightly-upstream-snapshot-build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ jobs:
3232
java-version: 17
3333
distribution: 'temurin'
3434

35+
# cache local patch outputs
36+
- name: Cache local Maven repository
37+
uses: actions/cache@v3
38+
with:
39+
path: |
40+
~/.m2/repository/io/opentelemetry/
41+
key: ${{ runner.os }}-maven-local-${{ hashFiles('.github/patches/opentelemetry-java*.patch') }}
42+
43+
- name: Publish patched dependencies to maven local
44+
uses: ./.github/actions/patch-dependencies
45+
with:
46+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
47+
gpg_password: ${{ secrets.GPG_PASSPHRASE }}
48+
3549
- uses: gradle/wrapper-validation-action@v1
3650

3751
- name: Configure AWS Credentials
@@ -120,7 +134,7 @@ jobs:
120134
fetch-depth: 0
121135
- uses: actions/setup-java@v4
122136
with:
123-
java-version: 21
137+
java-version: 23
124138
distribution: 'temurin'
125139
- uses: gradle/wrapper-validation-action@v1
126140

@@ -136,7 +150,7 @@ jobs:
136150
registry: public.ecr.aws
137151

138152
- name: Pull base image of Contract Tests Sample Apps
139-
run: docker pull public.ecr.aws/docker/library/amazoncorretto:21-alpine
153+
run: docker pull public.ecr.aws/docker/library/amazoncorretto:23-alpine
140154

141155
- name: Build snapshot with Gradle
142156
uses: gradle/gradle-build-action@v3

.github/workflows/patch-release-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
env:
1414
AWS_DEFAULT_REGION: us-east-1
15-
TEST_TAG: public.ecr.aws/aws-observability/adot-autoinstrumentation-java:test
15+
TEST_TAG: public.ecr.aws/aws-observability/adot-autoinstrumentation-java:test-v2
1616

1717
permissions:
1818
id-token: write

.github/workflows/pr-build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- main
66
- "release/v*"
77
env:
8-
TEST_TAG: public.ecr.aws/aws-observability/adot-autoinstrumentation-java:test
8+
TEST_TAG: public.ecr.aws/aws-observability/adot-autoinstrumentation-java:test-v2
99

1010
jobs:
1111
testpatch:
@@ -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
@@ -84,12 +91,12 @@ jobs:
8491
- name: Set up Java version for tests
8592
uses: actions/setup-java@v4
8693
with:
87-
java-version: 21
94+
java-version: 23
8895
distribution: temurin
8996

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

94101
- name: Run contract tests
95102
uses: gradle/gradle-build-action@v3

.github/workflows/release-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
AWS_PUBLIC_ECR_REGION: us-east-1
1111
AWS_PRIVATE_ECR_REGION: us-west-2
12-
TEST_TAG: public.ecr.aws/aws-observability/adot-autoinstrumentation-java:test
12+
TEST_TAG: public.ecr.aws/aws-observability/adot-autoinstrumentation-java:test-v2
1313
PUBLIC_REPOSITORY: public.ecr.aws/aws-observability/adot-autoinstrumentation-java
1414
PRIVATE_REPOSITORY: 020628701572.dkr.ecr.us-west-2.amazonaws.com/adot-autoinstrumentation-java
1515
PRIVATE_REGISTRY: 020628701572.dkr.ecr.us-west-2.amazonaws.com

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ can be exported in a variety of formats. In addition, the agent and exporter can
1313
command line arguments or environment variables. The net result is the ability to gather telemetry
1414
data from a Java application without any code changes.
1515

16+
Note: There are 2.x releases and 1.x releases. The 2.0 release included significant breaking changes from [OpenTelemetry Agent for Java](https://github.com/open-telemetry/opentelemetry-java-instrumentation),
17+
the details of which can be found in the [release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases).
18+
It is recommended to use the latest 2.x release which will have the latest features and improvements.
19+
1.x will receive security patches for a limited time and will not include other bug fixes and enhancements.
20+
1621
## Getting Started
1722

1823
Check out the [getting started documentation](https://aws-otel.github.io/docs/getting-started/java-sdk/auto-instr).
@@ -45,9 +50,12 @@ In addition to the sample apps in this repository, there are also a set of [stan
4550
Please note that as per policy, we're providing support via GitHub on a best effort basis. However, if you have AWS Enterprise Support you can create a ticket and we will provide direct support within the respective SLAs.
4651

4752
## Security issue notifications
53+
4854
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
4955

5056
## Checksum Verification
57+
5158
Artifacts released will include a `.sha256` file for checksum verification starting from v1.32.6
5259
To verify, run the command `shasum -a 256 -c <artifact_name>.sha256`
5360
It should return the output `<artifact_name>: OK` if the validation is successful
61+

0 commit comments

Comments
 (0)