Skip to content

Commit 1ccae58

Browse files
committed
Merge branch 'main' of https://github.com/open-telemetry/opentelemetry-java into okhttp-sender-major-versions
2 parents 72fab39 + ca41b47 commit 1ccae58

453 files changed

Lines changed: 6567 additions & 3264 deletions

File tree

Some content is hidden

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

.github/config/lychee.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ max_concurrency = 4
99
# Check link anchors
1010
include_fragments = true
1111

12-
remap = [
13-
# workaround for https://github.com/lycheeverse/lychee/issues/1729
14-
"https://github.com/(.*?)/(.*?)/blob/(.*?)/(.*#.*)$ https://raw.githubusercontent.com/$1/$2/$3/$4",
15-
]
16-
1712
# excluding links to pull requests and issues is done for performance
1813
exclude = [
1914
"^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\\d+$",

.github/renovate.json5

Lines changed: 60 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,45 @@
1010
ignorePaths: [], // overwrite default ignore which includes **/test/**
1111
// used to update docker image versions used in Java test files
1212
packageRules: [
13+
14+
// ── Scheduling & grouping ──────────────────────────────────────────
15+
1316
{
14-
// this is to reduce the number of renovate PRs
17+
// group all patch updates into a single weekly PR
18+
groupName: 'all patch versions',
19+
matchUpdateTypes: [
20+
'patch',
21+
],
22+
schedule: [
23+
'* 0-7 * * 2', // weekly, before 8am on Tuesday
24+
],
25+
},
26+
{
27+
// group GitHub Actions and dockerfile updates into a single weekly PR
28+
// (must be after patch rule so that it wins for GH Action patches)
1529
matchManagers: [
1630
'github-actions',
1731
'dockerfile',
1832
],
19-
extends: [
20-
'schedule:weekly',
33+
schedule: [
34+
'* 0-7 * * 2', // weekly, before 8am on Tuesday
2135
],
2236
groupName: 'weekly update',
2337
},
38+
{
39+
// keep Kotlin Gradle plugin updates out of the catch-all patch PR because CodeQL often
40+
// fails on them, which blocks unrelated patch updates
41+
matchDepNames: [
42+
'org.jetbrains.kotlin.jvm',
43+
],
44+
schedule: [
45+
'* 0-7 * * 2', // weekly, before 8am on Tuesday
46+
],
47+
groupName: 'kotlin plugin updates',
48+
},
49+
50+
// ── Version constraints ────────────────────────────────────────────
51+
2452
{
2553
matchPackageNames: [
2654
'io.opentelemetry.contrib:opentelemetry-aws-xray-propagator',
@@ -34,6 +62,19 @@
3462
ignoreUnstable: false,
3563
allowedVersions: '!/\\-SNAPSHOT$/',
3664
},
65+
66+
// ── Package family groups ──────────────────────────────────────────
67+
68+
{
69+
groupName: 'spotless packages',
70+
matchPackageNames: [
71+
'com.diffplug.spotless',
72+
'com.diffplug.spotless:**',
73+
],
74+
},
75+
76+
// ── Disabled updates (Java version compatibility) ──────────────────
77+
3778
{
3879
// junit 6+ requires Java 17+
3980
matchPackageNames: [
@@ -95,21 +136,25 @@
95136
enabled: false,
96137
},
97138
{
98-
groupName: 'spotless packages',
99-
matchPackageNames: [
100-
'com.diffplug.spotless',
101-
'com.diffplug.spotless:**',
102-
],
139+
// equalsverifier v4+ requires Java 17+
140+
// https://github.com/jqno/equalsverifier/blob/HEAD/CHANGELOG.md#changed-13
141+
matchPackageNames: ['nl.jqno.equalsverifier:equalsverifier'],
142+
matchUpdateTypes: ['major'],
143+
enabled: false,
103144
},
104-
{
105-
// equals verifier v4+ requires java 17+
106-
groupName: 'nl.jqno.equalsverifier',
107-
matchPackageNames: [ 'equalsverifier'],
108-
matchUpdateTypes: [ 'major' ],
109-
enabled: false
110-
}
111145
],
112146
customManagers: [
147+
{
148+
// keep SHA-pinned raw.githubusercontent.com URLs in mise.toml up to date
149+
customType: 'regex',
150+
datasourceTemplate: 'github-tags',
151+
managerFilePatterns: [
152+
'/^mise\\.toml$/',
153+
],
154+
matchStrings: [
155+
'https://raw\\.githubusercontent\\.com/(?<depName>[^/]+/[^/]+)/(?<currentDigest>[a-f0-9]{40})/.*#\\s*(?<currentValue>v\\S+)',
156+
],
157+
},
113158
{
114159
customType: 'regex',
115160
datasourceTemplate: 'java-version',

.github/repository-settings.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ private admin repo.
1010

1111
- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
1212
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
13-
- `NVD_API_KEY` - stored in OpenTelemetry-Java 1Password
14-
- Generated at https://nvd.nist.gov/developers/request-an-api-key
15-
- Key is associated with [@trask](https://github.com/trask)'s gmail address
13+
- `SONATYPE_OSS_INDEX_USER` - owned by [@jack-berg](https://github.com/jack-berg)
14+
- `SONATYPE_OSS_INDEX_PASSWORD` - owned by [@jack-berg](https://github.com/jack-berg)
1615
- `SONATYPE_KEY` - owned by [@jack-berg](https://github.com/jack-berg)
1716
- `SONATYPE_USER` - owned by [@jack-berg](https://github.com/jack-berg)
1817

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Use CLA approved github bot
3030
run: .github/scripts/use-cla-approved-bot.sh
3131

32-
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
32+
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
3333
id: otelbot-token
3434
with:
3535
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/benchmark-tags.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
permissions:
1212
contents: write # for git push to benchmarks branch
1313
name: Benchmark SDK
14-
runs-on: oracle-bare-metal-64cpu-512gb-x86-64
14+
runs-on: oracle-bare-metal-64cpu-1024gb-x86-64-ubuntu-24
1515
container:
16-
image: ubuntu:24.04@sha256:cd1dba651b3080c3686ecf4e3c4220f026b521fb76978881737d24f200828b2b
16+
image: ubuntu:24.04@sha256:84e77dee7d1bc93fb029a45e3c6cb9d8aa4831ccfcc7103d36e876938d28895b
1717
timeout-minutes: 20 # since there is only a single bare metal runner across all repos
1818
strategy:
1919
fail-fast: false
@@ -34,7 +34,7 @@ jobs:
3434
java-version: 21
3535

3636
- name: Set up gradle
37-
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
37+
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
3838
- name: Run jmh
3939
run: ./gradlew jmhJar
4040
env:
@@ -46,7 +46,7 @@ jobs:
4646
java -jar libs/opentelemetry-sdk-trace-*-jmh.jar -rf json SpanBenchmark SpanPipelineBenchmark ExporterBenchmark
4747
4848
- name: Store benchmark results
49-
uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
49+
uses: benchmark-action/github-action-benchmark@a60cea5bc7b49e15c1f58f411161f99e0df48372 # v1.22.0
5050
with:
5151
tool: 'jmh'
5252
output-file-path: sdk/trace/build/jmh-result.json

.github/workflows/benchmark.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
permissions:
1414
contents: write # for git push to benchmarks branch
1515
name: Benchmark SDK
16-
runs-on: oracle-bare-metal-64cpu-512gb-x86-64
16+
runs-on: oracle-bare-metal-64cpu-1024gb-x86-64-ubuntu-24
1717
container:
18-
image: ubuntu:24.04@sha256:cd1dba651b3080c3686ecf4e3c4220f026b521fb76978881737d24f200828b2b
18+
image: ubuntu:24.04@sha256:84e77dee7d1bc93fb029a45e3c6cb9d8aa4831ccfcc7103d36e876938d28895b
1919
timeout-minutes: 20 # since there is only a single bare metal runner across all repos
2020
steps:
2121
- name: Install Git
@@ -36,27 +36,27 @@ jobs:
3636
java-version: 21
3737

3838
- name: Set up gradle
39-
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
39+
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
4040
- name: Run jmh
4141
run: ./gradlew jmhJar
4242
env:
4343
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
4444

4545
# TODO (jack-berg): Select or build appropriate benchmarks for other key areas:
46-
# - Log SDK record & export
46+
# - Log SDK export
4747
# - Trace SDK export
4848
# - Metric SDK export
4949
# - Noop implementation
5050
- name: Run Benchmark
5151
run: |
5252
cd sdk/all/build
53-
java -jar libs/opentelemetry-sdk-*-jmh.jar -rf json MetricRecordBenchmark SpanRecordBenchmark
53+
java -jar libs/opentelemetry-sdk-*-jmh.jar -rf json MetricRecordBenchmark SpanRecordBenchmark LogRecordBenchmark
5454
5555
- name: Use CLA approved github bot
5656
run: .github/scripts/use-cla-approved-bot.sh
5757

5858
- name: Store benchmark results
59-
uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
59+
uses: benchmark-action/github-action-benchmark@a60cea5bc7b49e15c1f58f411161f99e0df48372 # v1.22.0
6060
with:
6161
tool: 'jmh'
6262
output-file-path: sdk/all/build/jmh-result.json

.github/workflows/build-daily.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
java-version: 21
2626

2727
- name: Set up gradle
28-
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
28+
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
2929

3030
- name: Publish to Sonatype
3131
run: ./gradlew assemble publishToSonatype
@@ -34,7 +34,8 @@ jobs:
3434
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
3535
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
3636
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
37-
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
37+
# disable gradle build cache, ensuring we're building from source to mitigate supply chain risk
38+
DISABLE_REMOTE_BUILD_CACHE: true
3839

3940
workflow-notification:
4041
permissions:

.github/workflows/build-tracecontext-testsuite.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323

2424
- name: Login to GitHub package registry
25-
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
25+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
2626
with:
2727
registry: ghcr.io
2828
username: ${{ github.repository_owner }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030

3131
- name: Build and push
32-
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
32+
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
3333
with:
3434
context: integration-tests/tracecontext/docker
3535
push: true

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
java-version: 21
5858

5959
- name: Set up gradle
60-
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
60+
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
6161
- name: Build
6262
run: >
6363
./gradlew build
@@ -88,12 +88,12 @@ jobs:
8888
exit 1
8989
fi
9090
91-
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
91+
- uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
9292
if: ${{ matrix.coverage }}
9393
env:
9494
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9595

96-
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
96+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9797
if: ${{ matrix.coverage }}
9898
with:
9999
name: coverage-report
@@ -115,7 +115,7 @@ jobs:
115115
- 25 # renovate(java-version)
116116
steps:
117117
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
118-
- uses: graalvm/setup-graalvm@54b4f5a65c1a84b2fdfdc2078fe43df32819e4b1 # v1.4.5
118+
- uses: graalvm/setup-graalvm@60c26726de13f8b90771df4bc1641a52a3159994 # v1.5.2
119119
with:
120120
java-version: ${{ matrix.test-graal-version }}
121121
distribution: 'graalvm'

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242

4343
- name: Set up gradle
4444
if: matrix.language == 'java'
45-
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
45+
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
4646

4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
48+
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
4949
with:
5050
languages: ${{ matrix.language }}
5151
# using "linked" helps to keep up with the latest Kotlin support
@@ -62,6 +62,6 @@ jobs:
6262
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
6363

6464
- name: Perform CodeQL analysis
65-
uses: github/codeql-action/analyze@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
65+
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
6666
with:
6767
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)