Skip to content

Commit 84b1c70

Browse files
authored
Merge branch 'main' into support-custom-extention
2 parents 8ba2bf0 + b9894ce commit 84b1c70

File tree

250 files changed

+11345
-585
lines changed

Some content is hidden

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

250 files changed

+11345
-585
lines changed

.fossa.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,9 @@ targets:
766766
- type: gradle
767767
path: ./
768768
target: ':instrumentation:opentelemetry-api:opentelemetry-api-1.47:javaagent'
769+
- type: gradle
770+
path: ./
771+
target: ':instrumentation:opentelemetry-api:opentelemetry-api-1.50:javaagent'
769772
- type: gradle
770773
path: ./
771774
target: ':instrumentation:pekko:pekko-actor-1.0:javaagent'
@@ -1111,6 +1114,9 @@ targets:
11111114
- type: gradle
11121115
path: ./
11131116
target: ':instrumentation:vertx:vertx-http-client:vertx-http-client-4.0:javaagent'
1117+
- type: gradle
1118+
path: ./
1119+
target: ':instrumentation:vertx:vertx-http-client:vertx-http-client-5.0:javaagent'
11141120
- type: gradle
11151121
path: ./
11161122
target: ':instrumentation:vertx:vertx-http-client:vertx-http-client-common:javaagent'

.github/graal-native-docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
mongodb:
3-
image: mongo:4.0
3+
image: mongo:4.2
44
ports:
55
- "27017:27017"
66

.github/renovate.json5

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
33
extends: [
4-
'config:recommended',
5-
'docker:pinDigests',
6-
'helpers:pinGitHubActionDigests',
4+
'config:best-practices',
5+
'helpers:pinGitHubActionDigestsToSemver',
76
],
87
ignorePaths: [
98
'instrumentation/**',
@@ -330,8 +329,8 @@
330329
{
331330
customType: 'regex',
332331
datasourceTemplate: 'pypi',
333-
fileMatch: [
334-
'^.github/workflows/',
332+
managerFilePatterns: [
333+
'/^.github/workflows//',
335334
],
336335
matchStrings: [
337336
'pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)',
@@ -340,8 +339,8 @@
340339
{
341340
customType: 'regex',
342341
datasourceTemplate: 'npm',
343-
fileMatch: [
344-
'^.github/workflows/',
342+
managerFilePatterns: [
343+
'/^.github/workflows//',
345344
],
346345
matchStrings: [
347346
'npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)',

.github/repository-settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
132132

133133
- `FOSSA_API_KEY`
134134
- `OTELBOT_PRIVATE_KEY`
135+
- `OTELBOT_JAVA_INSTRUMENTATION_PRIVATE_KEY`
135136

136137
### Organization variables
137138

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Auto license report
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
21+
- name: Free disk space
22+
run: .github/scripts/gha-free-disk-space.sh
23+
24+
- name: Set up JDK for running Gradle
25+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
26+
with:
27+
distribution: temurin
28+
java-version-file: .java-version
29+
30+
- name: Set up gradle
31+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
32+
with:
33+
cache-read-only: true
34+
35+
- name: Check out PR branch
36+
env:
37+
GH_TOKEN: ${{ github.token }}
38+
run: gh pr checkout ${{ github.event.pull_request.number }}
39+
40+
- name: Update license report
41+
run: ./gradlew generateLicenseReport --no-build-cache
42+
43+
- id: create-patch
44+
name: Create patch file
45+
run: |
46+
git diff > patch
47+
if [ -s patch ]; then
48+
echo "exists=true" >> "$GITHUB_OUTPUT"
49+
fi
50+
51+
- name: Upload patch file
52+
if: steps.create-patch.outputs.exists == 'true'
53+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
54+
with:
55+
path: patch
56+
name: patch
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Auto spotless
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
21+
- name: Free disk space
22+
run: .github/scripts/gha-free-disk-space.sh
23+
24+
- name: Set up JDK for running Gradle
25+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
26+
with:
27+
distribution: temurin
28+
java-version-file: .java-version
29+
30+
- name: Set up gradle
31+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
32+
with:
33+
cache-read-only: true
34+
35+
- name: Check out PR branch
36+
env:
37+
GH_TOKEN: ${{ github.token }}
38+
run: gh pr checkout ${{ github.event.pull_request.number }}
39+
40+
- name: Spotless
41+
run: ./gradlew spotlessApply
42+
43+
- id: create-patch
44+
name: Create patch file
45+
run: |
46+
git diff > patch
47+
if [ -s patch ]; then
48+
echo "exists=true" >> "$GITHUB_OUTPUT"
49+
fi
50+
51+
- name: Upload patch file
52+
if: steps.create-patch.outputs.exists == 'true'
53+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
54+
with:
55+
path: patch
56+
name: patch

.github/workflows/auto-update-otel-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
java-version-file: .java-version
7373

7474
- name: Setup Gradle
75-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
75+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
7676

7777
- name: Update license report
7878
run: ./gradlew generateLicenseReport
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Auto update pull request
2+
on:
3+
workflow_run:
4+
workflows:
5+
- "Auto spotless"
6+
- "Auto license report"
7+
types:
8+
- completed
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
apply:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
steps:
20+
- name: Download patch
21+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
22+
with:
23+
run-id: ${{ github.event.workflow_run.id }}
24+
path: ${{ runner.temp }}
25+
merge-multiple: true
26+
github-token: ${{ github.token }}
27+
28+
- id: unzip-patch
29+
name: Unzip patch
30+
working-directory: ${{ runner.temp }}
31+
run: |
32+
if [ -f patch ]; then
33+
echo "exists=true" >> $GITHUB_OUTPUT
34+
fi
35+
36+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
37+
if: steps.unzip-patch.outputs.exists == 'true'
38+
id: otelbot-token
39+
with:
40+
app-id: 1295839
41+
private-key: ${{ secrets.OTELBOT_JAVA_INSTRUMENTATION_PRIVATE_KEY }}
42+
43+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
44+
if: steps.unzip-patch.outputs.exists == 'true'
45+
with:
46+
token: ${{ steps.otelbot-token.outputs.token }}
47+
48+
- id: get-pr
49+
if: steps.unzip-patch.outputs.exists == 'true'
50+
name: Get PR
51+
env:
52+
PR_BRANCH: |-
53+
${{
54+
(github.event.workflow_run.head_repository.owner.login != github.event.workflow_run.repository.owner.login)
55+
&& format('{0}:{1}', github.event.workflow_run.head_repository.owner.login, github.event.workflow_run.head_branch)
56+
|| github.event.workflow_run.head_branch
57+
}}
58+
GH_TOKEN: ${{ github.token }}
59+
run: |
60+
echo gh pr view "${PR_BRANCH}" --json number --jq .number
61+
number=$(gh pr view "${PR_BRANCH}" --json number --jq .number)
62+
echo $number
63+
echo "number=$number" >> $GITHUB_OUTPUT
64+
65+
- name: Check out PR branch
66+
if: steps.unzip-patch.outputs.exists == 'true'
67+
env:
68+
GH_TOKEN: ${{ github.token }}
69+
run: gh pr checkout ${{ steps.get-pr.outputs.number }}
70+
71+
- name: Use CLA approved github bot
72+
if: steps.unzip-patch.outputs.exists == 'true'
73+
# IMPORTANT do not call the .github/scripts/use-cla-approved-bot.sh
74+
# since that script could have been compromised in the PR branch
75+
run: |
76+
git config user.name otelbot
77+
git config user.email [email protected]
78+
79+
- name: Apply patch and push
80+
if: steps.unzip-patch.outputs.exists == 'true'
81+
run: |
82+
git apply "${{ runner.temp }}/patch"
83+
git commit -a -m "./gradlew spotlessApply"
84+
git push
85+
86+
- if: steps.unzip-patch.outputs.exists == 'true' && success()
87+
env:
88+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
89+
run: |
90+
gh pr comment ${{ steps.get-pr.outputs.number }} --body "🔧 The result from spotlessApply was committed to the PR branch."
91+
92+
- if: steps.unzip-patch.outputs.exists == 'true' && failure()
93+
env:
94+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
95+
run: |
96+
gh pr comment ${{ steps.get-pr.outputs.number }} --body "❌ The result from spotlessApply could not be committed to the PR branch, see logs: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID."

.github/workflows/build-common.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
java-version-file: .java-version
4242

4343
- name: Setup Gradle
44-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
44+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
4545
with:
4646
cache-read-only: ${{ inputs.cache-read-only }}
4747

@@ -63,7 +63,7 @@ jobs:
6363
java-version-file: .java-version
6464

6565
- name: Setup Gradle
66-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
66+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
6767
with:
6868
cache-read-only: ${{ inputs.cache-read-only }}
6969

@@ -102,7 +102,7 @@ jobs:
102102
java-version-file: .java-version
103103

104104
- name: Setup Gradle
105-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
105+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
106106
with:
107107
cache-read-only: ${{ inputs.cache-read-only }}
108108

@@ -189,7 +189,7 @@ jobs:
189189
sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx3g /" gradle.properties
190190
191191
- name: Setup Gradle
192-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
192+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
193193
with:
194194
cache-read-only: ${{ inputs.cache-read-only }}
195195

@@ -301,7 +301,7 @@ jobs:
301301
run: .github/scripts/deadlock-detector.sh
302302

303303
- name: Setup Gradle
304-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
304+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
305305
with:
306306
# only push cache for one matrix option since github action cache space is limited
307307
cache-read-only: ${{ inputs.cache-read-only || matrix.test-java-version != 11 || matrix.vm != 'hotspot' }}
@@ -432,7 +432,7 @@ jobs:
432432
java-version-file: .java-version
433433

434434
- name: Set up Gradle cache
435-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
435+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
436436
with:
437437
# only push cache for one matrix option per OS since github action cache space is limited
438438
cache-read-only: ${{ inputs.cache-read-only || matrix.smoke-test-suite != 'tomcat' }}
@@ -480,7 +480,7 @@ jobs:
480480
java-version-file: .java-version
481481

482482
- name: Setup Gradle
483-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
483+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
484484
with:
485485
cache-read-only: ${{ inputs.cache-read-only }}
486486

@@ -503,7 +503,7 @@ jobs:
503503
java-version-file: .java-version
504504

505505
- name: Set up Gradle cache
506-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
506+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
507507
with:
508508
cache-read-only: ${{ inputs.cache-read-only }}
509509

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
java-version-file: .java-version
7777

7878
- name: Setup Gradle
79-
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
79+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
8080

8181
- name: Build and publish artifact snapshots
8282
env:

0 commit comments

Comments
 (0)