Skip to content

Commit b28a200

Browse files
Merge branch 'main' into add_metric_annotation_instrument
2 parents bb36b37 + c277182 commit b28a200

File tree

898 files changed

+12001
-5210
lines changed

Some content is hidden

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

898 files changed

+12001
-5210
lines changed

.fossa.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ targets:
190190
- type: gradle
191191
path: ./
192192
target: ':instrumentation:jdbc:library'
193+
- type: gradle
194+
path: ./
195+
target: ':instrumentation:jfinal-3.2:javaagent'
193196
- type: gradle
194197
path: ./
195198
target: ':instrumentation:jmx-metrics:javaagent'
@@ -337,6 +340,12 @@ targets:
337340
- type: gradle
338341
path: ./
339342
target: ':instrumentation:armeria:armeria-grpc-1.14:javaagent'
343+
- type: gradle
344+
path: ./
345+
target: ':instrumentation:async-http-client:async-http-client-1-common:javaagent'
346+
- type: gradle
347+
path: ./
348+
target: ':instrumentation:async-http-client:async-http-client-1.8:javaagent'
340349
- type: gradle
341350
path: ./
342351
target: ':instrumentation:async-http-client:async-http-client-1.9:javaagent'

.github/CODEOWNERS

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#
22
# Learn about membership in OpenTelemetry community:
33
# https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md
4-
#
5-
#
6-
# Learn about CODEOWNERS file format:
7-
# https://help.github.com/en/articles/about-code-owners
84
#
95

106
* @open-telemetry/java-instrumentation-approvers

.github/config/lychee.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Lychee configuration file
2+
# See https://lychee.cli.rs/config/
3+
14
timeout = 30
25
retry_wait_time = 5
36
max_retries = 6

.github/renovate.json5

Lines changed: 73 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,18 @@
77
ignorePaths: [
88
'instrumentation/**',
99
],
10-
// needed in order to get patch-only updates in package rules below
11-
// unfortunately you can't combine updateTypes and separateMinorPatch in the same package rule
12-
// so we have to apply it globally here, see
13-
// https://github.com/renovatebot/renovate/discussions/8399#discussioncomment-305798
14-
separateMinorPatch: true,
1510
packageRules: [
1611
{
1712
// this is to reduce the number of renovate PRs
1813
matchManagers: [
1914
'github-actions',
2015
'dockerfile',
16+
'custom.regex',
2117
],
2218
extends: [
2319
'schedule:weekly',
2420
],
2521
groupName: 'weekly update',
26-
separateMinorPatch: false, // overrides separateMinorPatch specified above
2722
},
2823
{
2924
matchPackageNames: [
@@ -43,6 +38,14 @@
4338
ignoreUnstable: false,
4439
allowedVersions: '!/\\-SNAPSHOT$/',
4540
},
41+
{
42+
// currently using gradle plugin org.playframework.play 3.1.0 milestone releases
43+
// but don't want to pick up SNAPSHOT releases
44+
matchPackageNames: [
45+
'org.playframework.play:**',
46+
],
47+
allowedVersions: '!/\\-SNAPSHOT$/',
48+
},
4649
{
4750
groupName: 'quarkus packages',
4851
matchPackageNames: [
@@ -93,13 +96,6 @@
9396
'com.fasterxml.jackson.core:**',
9497
],
9598
},
96-
{
97-
// prevent update to 2.4-groovy-4.0-SNAPSHOT
98-
allowedVersions: '!/\\-SNAPSHOT$/',
99-
matchPackageNames: [
100-
'org.spockframework:**',
101-
],
102-
},
10399
{
104100
// prevent 3.0.1u2 -> 3.0.1
105101
matchPackageNames: [
@@ -150,72 +146,78 @@
150146
matchPackageNames: [
151147
'uk.org.webcompere:system-stubs-jupiter',
152148
],
149+
allowedVersions: '/^2\\.0\\./',
150+
},
151+
{
152+
// wiremock 3+ requires Java 11+
153153
matchUpdateTypes: [
154154
'major',
155-
'minor',
156155
],
157156
enabled: false,
157+
matchPackageNames: [
158+
'com.github.tomakehurst:wiremock-jre8'
159+
],
158160
},
159161
{
160-
// wiremock 3+ requires Java 11+
162+
// snakeyaml-engine 3+ requires Java 11+
161163
matchUpdateTypes: [
162164
'major',
163165
],
164166
enabled: false,
165167
matchPackageNames: [
166-
'com.github.tomakehurst:wiremock-jre8'
168+
'org.snakeyaml:snakeyaml-engine'
167169
],
168170
},
169171
{
170-
// intentionally using Spring Boot 2 in this smoke tests
171-
// new versions of Spring Boot 3 are tested with
172-
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/dc4330e0a3060bd7d8c4090ad0b8fc4727e68113/settings.gradle.kts#L43-L45
173-
matchFileNames: [
174-
'smoke-tests/images/spring-boot/build.gradle.kts',
175-
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
176-
'smoke-tests-otel-starter/spring-boot-common/build.gradle.kts',
177-
'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts',
178-
'smoke-tests-otel-starter/spring-boot-reactive-common/build.gradle.kts',
179-
'smoke-tests-otel-starter/spring-smoke-testing/build.gradle.kts',
172+
// groovy 5+ requires Java 11+
173+
matchUpdateTypes: [
174+
'major',
180175
],
176+
enabled: false,
181177
matchPackageNames: [
182-
'org.slf4j:slf4j-api',
183-
'org.springframework.boot:org.springframework.boot.gradle.plugin', // this is for plugin id "org.springframework.boot"
184-
'org.springframework.boot:spring-boot-dependencies',
178+
'org.apache.groovy:**'
179+
],
180+
},
181+
{
182+
// vaadin 14 tests require node 16
183+
matchPackageNames: [
184+
'actions/node-versions',
185185
],
186186
matchUpdateTypes: [
187187
'major',
188-
'minor',
189188
],
190189
enabled: false,
191190
},
192191
{
193-
// intentionally using Spring Boot 2 in this smoke tests
192+
// intentionally using Spring Boot 2 in these smoke tests
194193
matchFileNames: [
194+
'smoke-tests/images/spring-boot/build.gradle.kts',
195195
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
196+
'smoke-tests-otel-starter/spring-boot-common/build.gradle.kts',
196197
'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts',
198+
'smoke-tests-otel-starter/spring-boot-reactive-common/build.gradle.kts',
199+
'smoke-tests-otel-starter/spring-smoke-testing/build.gradle.kts',
197200
],
198201
matchPackageNames: [
199-
'ch.qos.logback:logback-classic',
202+
'org.slf4j:slf4j-api',
203+
'org.springframework.boot:**',
200204
],
201205
matchUpdateTypes: [
202-
'minor',
206+
'major',
203207
],
204208
enabled: false,
205209
},
206210
{
207-
// intentionally using logback 1.2 in this smoke tests
211+
// intentionally using Logback 1.2 (for Spring Boot 2) in these smoke tests
208212
matchFileNames: [
209213
'smoke-tests/images/spring-boot/build.gradle.kts',
214+
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
215+
'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts',
210216
],
211-
matchUpdateTypes: [
212-
'major',
213-
'minor',
214-
],
215-
enabled: false,
216217
matchPackageNames: [
217218
'ch.qos.logback:**',
218219
],
220+
allowedVersions: '/^1\\.2\\./',
219221
},
220222
{
221223
// intentionally using slf4j 1 in this smoke tests
@@ -246,18 +248,26 @@
246248
],
247249
},
248250
{
249-
// intentionally aligning both netty 4.0 and 4.1 version in this convention
251+
// intentionally aligning netty 4.0 versions in this convention
250252
matchFileNames: [
251253
'conventions/src/main/kotlin/otel.java-conventions.gradle.kts',
252254
],
253255
matchPackageNames: [
254256
'io.netty:netty-bom',
255257
],
256-
matchUpdateTypes: [
257-
'major',
258-
'minor',
258+
matchCurrentVersion: '/^4\\.0\\./',
259+
allowedVersions: '/^4\\.0\\./',
260+
},
261+
{
262+
// intentionally aligning netty 4.1 versions in this convention
263+
matchFileNames: [
264+
'conventions/src/main/kotlin/otel.java-conventions.gradle.kts',
259265
],
260-
enabled: false,
266+
matchPackageNames: [
267+
'io.netty:netty-bom',
268+
],
269+
matchCurrentVersion: '/^4\\.1\\./',
270+
allowedVersions: '/^4\\.1\\./',
261271
},
262272
{
263273
// intentionally using scala 2.11 in otel.scala-conventions.gradle.kts
@@ -267,14 +277,10 @@
267277
matchPackageNames: [
268278
'org.scala-lang:scala-library',
269279
],
270-
matchUpdateTypes: [
271-
'major',
272-
'minor',
273-
],
274-
enabled: false,
280+
allowedVersions: '/^2\\.11\\./',
275281
},
276282
{
277-
// intentionally using Java 11 in some examples
283+
// intentionally testing against specific major Java versions
278284
matchPackageNames: [
279285
'eclipse-temurin',
280286
],
@@ -312,14 +318,10 @@
312318
matchFileNames: [
313319
'dependencyManagement/build.gradle.kts',
314320
],
315-
matchUpdateTypes: [
316-
'major',
317-
'minor',
318-
],
319-
enabled: false,
320321
matchPackageNames: [
321322
'ch.qos.logback:**',
322323
],
324+
allowedVersions: '/^1\\.3\\./',
323325
},
324326
{
325327
// intentionally using Spring Boot 2 in dependency management (for Java 8 support)
@@ -354,20 +356,31 @@
354356
datasourceTemplate: 'java-version',
355357
managerFilePatterns: [
356358
'.github/workflows/**',
357-
'**/*.gradle.kts'
359+
'**/*.gradle.kts',
358360
],
359361
matchStrings: [
360-
'(?<currentValue>\\d+) # renovate: datasource=java-version',
361-
'"(?<currentValue>\\d+)" // renovate: datasource=java-version',
362+
'(?<currentValue>\\d+) # renovate\\(java-version\\)',
363+
'"(?<currentValue>\\d+)" // renovate\\(java-version\\)',
362364
],
363365
depNameTemplate: 'java',
364366
extractVersionTemplate: '^(?<version>\\d+)',
365367
},
368+
{
369+
customType: 'regex',
370+
datasourceTemplate: 'docker',
371+
managerFilePatterns: [
372+
'**/build.gradle.kts',
373+
],
374+
matchStrings: [
375+
'"(?<depName>eclipse-temurin):(?<currentValue>[^"@]+)@(?<currentDigest>sha256:[0-9a-f]+)"',
376+
'"(?<depName>ibm-semeru-runtimes):(?<currentValue>[^"@]+)@(?<currentDigest>sha256:[0-9a-f]+)"',
377+
],
378+
},
366379
{
367380
customType: 'regex',
368381
datasourceTemplate: 'pypi',
369382
managerFilePatterns: [
370-
'/^.github/workflows//',
383+
'.github/workflows/**',
371384
],
372385
matchStrings: [
373386
'pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)',
@@ -377,7 +390,7 @@
377390
customType: 'regex',
378391
datasourceTemplate: 'npm',
379392
managerFilePatterns: [
380-
'/^.github/workflows//',
393+
'.github/workflows/**',
381394
],
382395
matchStrings: [
383396
'npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)',

.github/repository-settings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ private admin repo.
1111
- `FLAKY_TEST_REPORTER_ACCESS_KEY` - owned by [@laurit](https://github.com/laurit)
1212
- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
1313
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
14-
- `GRADLE_PUBLISH_KEY`
15-
- `GRADLE_PUBLISH_SECRET`
14+
- `GRADLE_PUBLISH_KEY` - owned by [@trask](https://github.com/trask)
15+
- `GRADLE_PUBLISH_SECRET` - owned by [@trask](https://github.com/trask)
1616
- `NVD_API_KEY` - stored in OpenTelemetry-Java 1Password
1717
- Generated at https://nvd.nist.gov/developers/request-an-api-key
1818
- Key is associated with [@trask](https://github.com/trask)'s gmail address

.github/workflows/build-common.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ jobs:
246246
- 11
247247
- 17
248248
- 21
249-
- 25 # renovate: datasource=java-version
249+
- 25 # renovate(java-version)
250+
- 25-deny-unsafe
250251
vm:
251252
- hotspot
252253
- openj9
@@ -260,6 +261,8 @@ jobs:
260261
- true
261262
exclude:
262263
- vm: ${{ inputs.skip-openj9-tests && 'openj9' || '' }}
264+
- test-java-version: 25-deny-unsafe
265+
vm: openj9
263266
fail-fast: false
264267
steps:
265268
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -273,7 +276,7 @@ jobs:
273276
with:
274277
# using zulu because new releases get published quickly
275278
distribution: ${{ matrix.vm == 'hotspot' && 'zulu' || 'adopt-openj9'}}
276-
java-version: ${{ matrix.test-java-version }}
279+
java-version: ${{ matrix.test-java-version != '25-deny-unsafe' && matrix.test-java-version || '25' }}
277280

278281
- name: Set up JDK for running Gradle
279282
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
@@ -329,6 +332,7 @@ jobs:
329332
-PtestJavaVersion=${{ matrix.test-java-version }}
330333
-PtestJavaVM=${{ matrix.vm }}
331334
-PtestIndy=${{ matrix.test-indy }}
335+
-PdenyUnsafe=${{ matrix.test-java-version == '25-deny-unsafe' && 'true' || 'false' }}
332336
-Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }}
333337
-Porg.gradle.java.installations.auto-download=false
334338
${{ inputs.no-build-cache && ' --no-build-cache' || '' }}

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
cache-read-only: ${{ github.event_name == 'pull_request' }}
6464

6565
- name: Initialize CodeQL
66-
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
66+
uses: github/codeql-action/init@014f16e7ab1402f30e7c3329d33797e7948572db # v4.31.3
6767
with:
6868
languages: ${{ matrix.language }}
6969
# using "linked" helps to keep up with the linked Kotlin support
@@ -84,6 +84,6 @@ jobs:
8484
--no-build-cache --no-daemon
8585
8686
- name: Perform CodeQL analysis
87-
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
87+
uses: github/codeql-action/analyze@014f16e7ab1402f30e7c3329d33797e7948572db # v4.31.3
8888
with:
8989
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
- name: 'Checkout Repository'
2020
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121
- name: 'Dependency Review'
22-
uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a # v4.8.1
22+
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2

.github/workflows/ossf-scorecard.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
- cron: "43 6 * * 5" # weekly at 06:43 (UTC) on Friday
99
workflow_dispatch:
1010

11-
permissions: read-all
11+
permissions:
12+
contents: read
1213

1314
jobs:
1415
analysis:
@@ -42,6 +43,6 @@ jobs:
4243
# Upload the results to GitHub's code scanning dashboard (optional).
4344
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4445
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
46+
uses: github/codeql-action/upload-sarif@014f16e7ab1402f30e7c3329d33797e7948572db # v4.31.3
4647
with:
4748
sarif_file: results.sarif

0 commit comments

Comments
 (0)