Skip to content

Commit 0d44121

Browse files
committed
Merge branch 'main' of github.com:jaydeluca/opentelemetry-java-instrumentation into kotlin-ktor
2 parents f0bfa6c + c277182 commit 0d44121

File tree

286 files changed

+4000
-1161
lines changed

Some content is hidden

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

286 files changed

+4000
-1161
lines changed

.fossa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ targets:
187187
- type: gradle
188188
path: ./
189189
target: ':instrumentation:jdbc:library'
190+
- type: gradle
191+
path: ./
192+
target: ':instrumentation:jfinal-3.2:javaagent'
190193
- type: gradle
191194
path: ./
192195
target: ':instrumentation:jmx-metrics:javaagent'

.github/renovate.json5

Lines changed: 47 additions & 57 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: [
@@ -143,11 +146,7 @@
143146
matchPackageNames: [
144147
'uk.org.webcompere:system-stubs-jupiter',
145148
],
146-
matchUpdateTypes: [
147-
'major',
148-
'minor',
149-
],
150-
enabled: false,
149+
allowedVersions: '/^2\\.0\\./',
151150
},
152151
{
153152
// wiremock 3+ requires Java 11+
@@ -190,9 +189,7 @@
190189
enabled: false,
191190
},
192191
{
193-
// intentionally using Spring Boot 2 in this smoke tests
194-
// new versions of Spring Boot 3 are tested with
195-
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/dc4330e0a3060bd7d8c4090ad0b8fc4727e68113/settings.gradle.kts#L43-L45
192+
// intentionally using Spring Boot 2 in these smoke tests
196193
matchFileNames: [
197194
'smoke-tests/images/spring-boot/build.gradle.kts',
198195
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
@@ -203,42 +200,24 @@
203200
],
204201
matchPackageNames: [
205202
'org.slf4j:slf4j-api',
206-
'org.springframework.boot:org.springframework.boot.gradle.plugin', // this is for plugin id "org.springframework.boot"
207-
'org.springframework.boot:spring-boot-dependencies',
203+
'org.springframework.boot:**',
208204
],
209205
matchUpdateTypes: [
210206
'major',
211-
'minor',
212207
],
213208
enabled: false,
214209
},
215210
{
216-
// intentionally using Spring Boot 2 in this smoke tests
211+
// intentionally using Logback 1.2 (for Spring Boot 2) in these smoke tests
217212
matchFileNames: [
213+
'smoke-tests/images/spring-boot/build.gradle.kts',
218214
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
219215
'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts',
220216
],
221-
matchPackageNames: [
222-
'ch.qos.logback:logback-classic',
223-
],
224-
matchUpdateTypes: [
225-
'minor',
226-
],
227-
enabled: false,
228-
},
229-
{
230-
// intentionally using logback 1.2 in this smoke tests
231-
matchFileNames: [
232-
'smoke-tests/images/spring-boot/build.gradle.kts',
233-
],
234-
matchUpdateTypes: [
235-
'major',
236-
'minor',
237-
],
238-
enabled: false,
239217
matchPackageNames: [
240218
'ch.qos.logback:**',
241219
],
220+
allowedVersions: '/^1\\.2\\./',
242221
},
243222
{
244223
// intentionally using slf4j 1 in this smoke tests
@@ -269,18 +248,26 @@
269248
],
270249
},
271250
{
272-
// intentionally aligning both netty 4.0 and 4.1 version in this convention
251+
// intentionally aligning netty 4.0 versions in this convention
273252
matchFileNames: [
274253
'conventions/src/main/kotlin/otel.java-conventions.gradle.kts',
275254
],
276255
matchPackageNames: [
277256
'io.netty:netty-bom',
278257
],
279-
matchUpdateTypes: [
280-
'major',
281-
'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',
282265
],
283-
enabled: false,
266+
matchPackageNames: [
267+
'io.netty:netty-bom',
268+
],
269+
matchCurrentVersion: '/^4\\.1\\./',
270+
allowedVersions: '/^4\\.1\\./',
284271
},
285272
{
286273
// intentionally using scala 2.11 in otel.scala-conventions.gradle.kts
@@ -290,14 +277,10 @@
290277
matchPackageNames: [
291278
'org.scala-lang:scala-library',
292279
],
293-
matchUpdateTypes: [
294-
'major',
295-
'minor',
296-
],
297-
enabled: false,
280+
allowedVersions: '/^2\\.11\\./',
298281
},
299282
{
300-
// intentionally using Java 11 in some examples
283+
// intentionally testing against specific major Java versions
301284
matchPackageNames: [
302285
'eclipse-temurin',
303286
],
@@ -335,14 +318,10 @@
335318
matchFileNames: [
336319
'dependencyManagement/build.gradle.kts',
337320
],
338-
matchUpdateTypes: [
339-
'major',
340-
'minor',
341-
],
342-
enabled: false,
343321
matchPackageNames: [
344322
'ch.qos.logback:**',
345323
],
324+
allowedVersions: '/^1\\.3\\./',
346325
},
347326
{
348327
// intentionally using Spring Boot 2 in dependency management (for Java 8 support)
@@ -377,20 +356,31 @@
377356
datasourceTemplate: 'java-version',
378357
managerFilePatterns: [
379358
'.github/workflows/**',
380-
'**/*.gradle.kts'
359+
'**/*.gradle.kts',
381360
],
382361
matchStrings: [
383-
'(?<currentValue>\\d+) # renovate: datasource=java-version',
384-
'"(?<currentValue>\\d+)" // renovate: datasource=java-version',
362+
'(?<currentValue>\\d+) # renovate\\(java-version\\)',
363+
'"(?<currentValue>\\d+)" // renovate\\(java-version\\)',
385364
],
386365
depNameTemplate: 'java',
387366
extractVersionTemplate: '^(?<version>\\d+)',
388367
},
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+
},
389379
{
390380
customType: 'regex',
391381
datasourceTemplate: 'pypi',
392382
managerFilePatterns: [
393-
'/^.github/workflows//',
383+
'.github/workflows/**',
394384
],
395385
matchStrings: [
396386
'pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)',
@@ -400,7 +390,7 @@
400390
customType: 'regex',
401391
datasourceTemplate: 'npm',
402392
managerFilePatterns: [
403-
'/^.github/workflows//',
393+
'.github/workflows/**',
404394
],
405395
matchStrings: [
406396
'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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ jobs:
246246
- 11
247247
- 17
248248
- 21
249-
- 25 # renovate: datasource=java-version
249+
- 25 # renovate(java-version)
250250
- 25-deny-unsafe
251251
vm:
252252
- hotspot

.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@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
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@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ jobs:
4343
# Upload the results to GitHub's code scanning dashboard (optional).
4444
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4545
- name: "Upload to code-scanning"
46-
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
46+
uses: github/codeql-action/upload-sarif@014f16e7ab1402f30e7c3329d33797e7948572db # v4.31.3
4747
with:
4848
sarif_file: results.sarif

.github/workflows/reusable-link-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
fetch-depth: 0 # needed for merge-base used in lint:links-in-modified-files
1616

17-
- uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0
17+
- uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1
1818

1919
- name: Link check - relative links (all files)
2020
if: github.event_name == 'pull_request'

.github/workflows/reusable-pr-smoke-test-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
build:
3131
runs-on: ubuntu-latest
3232
env:
33-
LATEST_JAVA_VERSION: 25 # renovate: datasource=java-version
33+
LATEST_JAVA_VERSION: 25 # renovate(java-version)
3434
steps:
3535
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3636

.github/workflows/reusable-publish-smoke-test-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
contents: read
3434
packages: write
3535
env:
36-
LATEST_JAVA_VERSION: 25 # renovate: datasource=java-version
36+
LATEST_JAVA_VERSION: 25 # renovate(java-version)
3737
steps:
3838
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3939

0 commit comments

Comments
 (0)