Skip to content

Commit 08804f7

Browse files
authored
Merge branch 'main' into elasticjob
2 parents 7c1dd52 + 90f519a commit 08804f7

File tree

1,191 files changed

+22756
-11188
lines changed

Some content is hidden

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

1,191 files changed

+22756
-11188
lines changed

.fossa.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,12 @@ targets:
340340
- type: gradle
341341
path: ./
342342
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'
343349
- type: gradle
344350
path: ./
345351
target: ':instrumentation:async-http-client:async-http-client-1.9:javaagent'
@@ -391,6 +397,9 @@ targets:
391397
- type: gradle
392398
path: ./
393399
target: ':instrumentation:azure-core:azure-core-1.36:javaagent'
400+
- type: gradle
401+
path: ./
402+
target: ':instrumentation:azure-core:azure-core-1.53:javaagent'
394403
- type: gradle
395404
path: ./
396405
target: ':instrumentation:cassandra:cassandra-3.0:javaagent'
@@ -430,6 +439,9 @@ targets:
430439
- type: gradle
431440
path: ./
432441
target: ':instrumentation:couchbase:couchbase-3.2:javaagent'
442+
- type: gradle
443+
path: ./
444+
target: ':instrumentation:couchbase:couchbase-3.4:javaagent'
433445
- type: gradle
434446
path: ./
435447
target: ':instrumentation:dropwizard:dropwizard-metrics-4.0:javaagent'
@@ -622,6 +634,9 @@ targets:
622634
- type: gradle
623635
path: ./
624636
target: ':instrumentation:jsf:jsf-myfaces-3.0:javaagent'
637+
- type: gradle
638+
path: ./
639+
target: ':instrumentation:kafka:kafka-connect-2.6:javaagent'
625640
- type: gradle
626641
path: ./
627642
target: ':instrumentation:kafka:kafka-streams-0.11: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/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ test native:
22
- all:
33
- changed-files:
44
- any-glob-to-any-file:
5-
- instrumentation/logback/logback-appender-10/library/**
5+
- instrumentation/logback/logback-appender-1.0/library/**
66
- instrumentation/jdbc/library/**
77
- instrumentation/spring/**
88
- smoke-tests-otel-starter/**

.github/renovate.json5

Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,56 +46,51 @@
4646
{
4747
groupName: 'quarkus packages',
4848
matchPackageNames: [
49-
'io.quarkus{/,}**',
49+
'io.quarkus:**',
5050
],
5151
},
5252
{
5353
groupName: 'gradle develocity packages',
5454
matchPackageNames: [
55-
'com.gradle.develocity{/,}**',
55+
'com.gradle.develocity:**',
5656
],
5757
},
5858
{
5959
groupName: 'armeria packages',
6060
matchPackageNames: [
61-
'com.linecorp.armeria:{/,}**',
61+
'com.linecorp.armeria:**',
6262
],
6363
},
6464
{
6565
groupName: 'spotless packages',
6666
matchPackageNames: [
67-
'com.diffplug.spotless{/,}**',
67+
'com.diffplug.spotless',
68+
'com.diffplug.spotless:**',
6869
],
6970
},
7071
{
7172
groupName: 'byte buddy packages',
7273
matchPackageNames: [
73-
'net.bytebuddy:{/,}**',
74+
'net.bytebuddy:**',
7475
],
7576
},
7677
{
7778
groupName: 'gradle shadow packages',
7879
matchPackageNames: [
79-
'com.gradleup.shadow{/,}**',
80+
'com.gradleup.shadow:**',
8081
],
8182
},
8283
{
8384
groupName: 'guava packages',
8485
matchPackageNames: [
85-
'com.google.guava{/,}**',
86+
'com.google.guava:**',
8687
],
8788
},
8889
{
8990
groupName: 'jackson packages',
9091
matchPackageNames: [
91-
'com.fasterxml.jackson{/,}**',
92-
],
93-
},
94-
{
95-
// prevent update to 2.4-groovy-4.0-SNAPSHOT
96-
allowedVersions: '!/\\-SNAPSHOT$/',
97-
matchPackageNames: [
98-
'org.spockframework:{/,}**',
92+
'com.fasterxml.jackson:**',
93+
'com.fasterxml.jackson.core:**',
9994
],
10095
},
10196
{
@@ -109,7 +104,7 @@
109104
// OpenTelemetry SDK updates are handled by auto-update-otel-sdk.yml
110105
enabled: false,
111106
matchPackageNames: [
112-
'io.opentelemetry:{/,}**',
107+
'io.opentelemetry:**',
113108
],
114109
},
115110
{
@@ -140,7 +135,7 @@
140135
],
141136
enabled: false,
142137
matchPackageNames: [
143-
'org.mockito:{/,}**',
138+
'org.mockito:**',
144139
],
145140
},
146141
{
@@ -164,6 +159,26 @@
164159
'com.github.tomakehurst:wiremock-jre8'
165160
],
166161
},
162+
{
163+
// snakeyaml-engine 3+ requires Java 11+
164+
matchUpdateTypes: [
165+
'major',
166+
],
167+
enabled: false,
168+
matchPackageNames: [
169+
'org.snakeyaml:snakeyaml-engine'
170+
],
171+
},
172+
{
173+
// vaadin 14 tests require node 16
174+
matchPackageNames: [
175+
'actions/node-versions',
176+
],
177+
matchUpdateTypes: [
178+
'major',
179+
],
180+
enabled: false,
181+
},
167182
{
168183
// intentionally using Spring Boot 2 in this smoke tests
169184
// new versions of Spring Boot 3 are tested with
@@ -212,7 +227,7 @@
212227
],
213228
enabled: false,
214229
matchPackageNames: [
215-
'ch.qos.logback:{/,}**',
230+
'ch.qos.logback:**',
216231
],
217232
},
218233
{
@@ -225,7 +240,7 @@
225240
],
226241
enabled: false,
227242
matchPackageNames: [
228-
'org.slf4j:{/,}**',
243+
'org.slf4j:**',
229244
],
230245
},
231246
{
@@ -239,8 +254,8 @@
239254
],
240255
enabled: false,
241256
matchPackageNames: [
242-
'com.google.inject:{/,}**',
243-
'com.google.inject.extensions:{/,}**',
257+
'com.google.inject:**',
258+
'com.google.inject.extensions:**',
244259
],
245260
},
246261
{
@@ -316,7 +331,7 @@
316331
],
317332
enabled: false,
318333
matchPackageNames: [
319-
'ch.qos.logback:{/,}**',
334+
'ch.qos.logback:**',
320335
],
321336
},
322337
{
@@ -329,7 +344,7 @@
329344
],
330345
enabled: false,
331346
matchPackageNames: [
332-
'org.springframework.boot:spring-boot-dependencies{/,}**',
347+
'org.springframework.boot:spring-boot-dependencies:**',
333348
],
334349
},
335350
{
@@ -342,7 +357,7 @@
342357
],
343358
enabled: false,
344359
matchPackageNames: [
345-
'org.eclipse.jetty:{/,}**',
360+
'org.eclipse.jetty:**',
346361
],
347362
},
348363
],

.github/repository-settings.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ private admin repo.
88

99
### Repository secrets
1010

11+
- `FLAKY_TEST_REPORTER_ACCESS_KEY` - owned by [@laurit](https://github.com/laurit)
1112
- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
1213
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
1314
- `GRADLE_PUBLISH_KEY`
@@ -17,13 +18,13 @@ private admin repo.
1718
- Key is associated with [@trask](https://github.com/trask)'s gmail address
1819
- `SONATYPE_KEY` - owned by [@trask](https://github.com/trask)
1920
- `SONATYPE_USER` - owned by [@trask](https://github.com/trask)
20-
- `FLAKY_TEST_REPORTER_ACCESS_KEY` - owned by [@laurit](https://github.com/laurit)
2121

2222
### Organization secrets
2323

24+
- `DEVELOCITY_ACCESS_KEY` (scoped only to Java repos)
2425
- `FOSSA_API_KEY`
26+
- `OTELBOT_JAVA_INSTRUMENTATION_PRIVATE_KEY` (scoped only to this repo)
2527
- `OTELBOT_PRIVATE_KEY`
26-
- `OTELBOT_JAVA_INSTRUMENTATION_PRIVATE_KEY`
2728

2829
### Organization variables
2930

.github/scripts/draft-change-log-entries.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,29 @@ if [[ $minor == 0 ]]; then
1515
prior_minor=$(sed -n "s/^## Version $prior_major\.\([0-9]\+\)\..*/\1/p" CHANGELOG.md | head -1)
1616
if [[ -z $prior_minor ]]; then
1717
# assuming this is the first release
18-
range=
18+
range=HEAD
1919
else
2020
range="v$prior_major.$prior_minor.0..HEAD"
2121
fi
2222
else
2323
range="v$major.$((minor - 1)).0..HEAD"
2424
fi
2525

26-
echo "## Unreleased"
27-
echo
28-
echo "### Migration notes"
26+
echo "# Changelog"
2927
echo
28+
echo "## Unreleased"
3029
echo
30+
31+
"$(dirname "$0")/extract-labeled-prs.sh" "$range"
32+
3133
echo "### 🌟 New javaagent instrumentation"
3234
echo
33-
echo
3435
echo "### 🌟 New library instrumentation"
3536
echo
36-
echo
3737
echo "### 📈 Enhancements"
3838
echo
39-
echo
4039
echo "### 🛠️ Bug fixes"
4140
echo
42-
echo
4341
echo "### 🧰 Tooling"
4442
echo
4543

@@ -48,4 +46,5 @@ git log --reverse \
4846
--author='^(?!renovate\[bot\] )' \
4947
--pretty=format:"- %s" \
5048
"$range" \
51-
| sed -E 's,\(#([0-9]+)\)$,\n ([#\1](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/\1)),'
49+
| sed -E 's, *\(#([0-9]+)\)$,\n ([#\1](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/\1)),'
50+
echo
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#!/bin/bash -e
2+
3+
# This script extracts PRs with "breaking change" and "deprecation" labels for the given version range
4+
# Usage: extract-labeled-prs.sh [git-range]
5+
# If no range is provided, it uses HEAD
6+
7+
range="${1:-HEAD}"
8+
9+
# Get the date range for filtering
10+
if [[ "$range" == "HEAD" ]]; then
11+
# Get all commits from HEAD
12+
oldest_commit=$(git log --reverse --pretty=format:"%H" HEAD | head -1)
13+
since_date=$(git show -s --format=%ci "$oldest_commit" | cut -d' ' -f1)
14+
else
15+
# Get commits in the specified range
16+
if [[ $range =~ ^(.+)\.\.(.+)$ ]]; then
17+
from_ref="${BASH_REMATCH[1]}"
18+
oldest_commit=$(git rev-parse "$from_ref")
19+
since_date=$(git show -s --format=%ci "$oldest_commit" | cut -d' ' -f1)
20+
else
21+
echo "[ERROR] Invalid range format: $range" >&2
22+
exit 1
23+
fi
24+
fi
25+
26+
# Initialize tracking variables
27+
breaking_changes=""
28+
deprecations=""
29+
breaking_changes_found=false
30+
deprecations_found=false
31+
32+
# Get PRs with "breaking change" label using GitHub search
33+
breaking_prs=$(gh pr list \
34+
--repo open-telemetry/opentelemetry-java-instrumentation \
35+
--label "breaking change" \
36+
--state merged \
37+
--search "merged:>=$since_date" \
38+
--json number,title \
39+
--jq '.[] | "\(.number)|\(.title)"' 2>/dev/null || echo "")
40+
41+
if [[ -n "$breaking_prs" ]]; then
42+
breaking_changes_found=true
43+
while IFS='|' read -r pr_number pr_title; do
44+
breaking_changes+="- $pr_title"$'\n'" ([#$pr_number](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/$pr_number))"$'\n'
45+
done <<< "$breaking_prs"
46+
fi
47+
48+
# Get PRs with "deprecation" label using GitHub search
49+
deprecation_prs=$(gh pr list \
50+
--repo open-telemetry/opentelemetry-java-instrumentation \
51+
--label "deprecation" \
52+
--state merged \
53+
--search "merged:>=$since_date" \
54+
--json number,title \
55+
--jq '.[] | "\(.number)|\(.title)"' 2>/dev/null || echo "")
56+
57+
if [[ -n "$deprecation_prs" ]]; then
58+
deprecations_found=true
59+
while IFS='|' read -r pr_number pr_title; do
60+
deprecations+="- $pr_title"$'\n'" ([#$pr_number](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/$pr_number))"$'\n'
61+
done <<< "$deprecation_prs"
62+
fi
63+
64+
# Output breaking changes section
65+
if [[ "$breaking_changes_found" == "true" ]]; then
66+
echo "### ⚠️ Breaking Changes"
67+
echo
68+
echo -n "$breaking_changes"
69+
echo
70+
fi
71+
72+
# Output deprecations section
73+
if [[ "$deprecations_found" == "true" ]]; then
74+
echo "### 🚫 Deprecations"
75+
echo
76+
echo -n "$deprecations"
77+
echo
78+
fi

0 commit comments

Comments
 (0)