Skip to content

Commit af3307b

Browse files
authored
Merge branch 'main' into copilot/fix-79effdad-6d82-4980-ad08-443e4438f725
2 parents 8886687 + 94b2fb4 commit af3307b

File tree

633 files changed

+16970
-4987
lines changed

Some content is hidden

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

633 files changed

+16970
-4987
lines changed

.fossa.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ targets:
136136
- type: gradle
137137
path: ./
138138
target: ':instrumentation:gwt-2.0:javaagent'
139+
- type: gradle
140+
path: ./
141+
target: ':instrumentation:helidon-4.3:javaagent'
142+
- type: gradle
143+
path: ./
144+
target: ':instrumentation:helidon-4.3:library'
139145
- type: gradle
140146
path: ./
141147
target: ':instrumentation:hikaricp-3.0:javaagent'
@@ -613,6 +619,9 @@ targets:
613619
- type: gradle
614620
path: ./
615621
target: ':instrumentation:jsf:jsf-myfaces-3.0:javaagent'
622+
- type: gradle
623+
path: ./
624+
target: ':instrumentation:kafka:kafka-connect-2.6:javaagent'
616625
- type: gradle
617626
path: ./
618627
target: ':instrumentation:kafka:kafka-streams-0.11:javaagent'
@@ -709,6 +718,12 @@ targets:
709718
- type: gradle
710719
path: ./
711720
target: ':instrumentation:mongo:mongo-async-3.3:javaagent'
721+
- type: gradle
722+
path: ./
723+
target: ':instrumentation:nats:nats-2.17:javaagent'
724+
- type: gradle
725+
path: ./
726+
target: ':instrumentation:nats:nats-2.17:library'
712727
- type: gradle
713728
path: ./
714729
target: ':instrumentation:netty:netty-3.8:javaagent'
@@ -745,6 +760,9 @@ targets:
745760
- type: gradle
746761
path: ./
747762
target: ':instrumentation:openai:openai-java-1.1:library'
763+
- type: gradle
764+
path: ./
765+
target: ':instrumentation:opensearch:opensearch-java-3.0:javaagent'
748766
- type: gradle
749767
path: ./
750768
target: ':instrumentation:opensearch:opensearch-rest-1.0:javaagent'

.lychee.toml renamed to .github/config/lychee.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ exclude = [
2121
'^http://code.google.com/p/concurrentlinkedhashmap$',
2222
'^https://softwareengineering.stackexchange.com/questions/29727.*',
2323
'^https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/io/opentelemetry/$',
24+
# new artifact, remove after 2.21.0 release
25+
'^https://central.sonatype.com/artifact/io.opentelemetry.instrumentation/opentelemetry-helidon-4.3$',
2426
]

.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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@
112112
'io.opentelemetry:{/,}**',
113113
],
114114
},
115+
{
116+
// junit 6+ requires Java 17+
117+
matchPackageNames: [
118+
'org.junit:**',
119+
'org.junit.jupiter:**',
120+
],
121+
matchUpdateTypes: [
122+
'major',
123+
],
124+
enabled: false,
125+
},
115126
{
116127
// junit-pioneer 2+ requires Java 11+
117128
matchPackageNames: [
@@ -336,6 +347,20 @@
336347
},
337348
],
338349
customManagers: [
350+
{
351+
customType: 'regex',
352+
datasourceTemplate: 'java-version',
353+
managerFilePatterns: [
354+
'.github/workflows/**',
355+
'**/*.gradle.kts'
356+
],
357+
matchStrings: [
358+
'(?<currentValue>\\d+) # renovate: datasource=java-version',
359+
'"(?<currentValue>\\d+)" // renovate: datasource=java-version',
360+
],
361+
depNameTemplate: 'java',
362+
extractVersionTemplate: '^(?<version>\\d+)',
363+
},
339364
{
340365
customType: 'regex',
341366
datasourceTemplate: 'pypi',

.github/scripts/check-package-names.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ for dir in $(find instrumentation -name "*.java" | grep library/src/main/java |
2929
if [[ "$dir" == "instrumentation/lettuce/lettuce-5.1/library/src/main/java/io/lettuce/core/protocol" ]]; then
3030
continue
3131
fi
32+
if [[ "$dir" == "instrumentation/nats/nats-2.17/library/src/main/java/io/nats/client/impl" ]]; then
33+
continue
34+
fi
3235

3336
# some common modules don't have any base version
3437
# - lettuce-common

.github/scripts/dependencies.dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

.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

.github/scripts/link-check.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/auto-license-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
java-version-file: .java-version
2929

3030
- name: Set up gradle
31-
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
31+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
3232
with:
3333
cache-read-only: true
3434

0 commit comments

Comments
 (0)