Skip to content

Commit e811456

Browse files
committed
Merge remote-tracking branch 'upstream/main' into migration-notes
2 parents 5a58be1 + 32fc939 commit e811456

File tree

190 files changed

+3493
-2751
lines changed

Some content is hidden

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

190 files changed

+3493
-2751
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/bin/bash -e
2+
3+
# shellcheck disable=SC2044
4+
for file in $(find instrumentation -name "*Module.java"); do
5+
6+
if ! grep -q "extends InstrumentationModule" "$file"; then
7+
continue
8+
fi
9+
10+
if [[ "$file" != *"/javaagent/src/"* ]]; then
11+
continue
12+
fi
13+
14+
# shellcheck disable=SC2001
15+
module_name=$(echo "$file" | sed 's#.*/\([^/]*\)/javaagent/src/.*#\1#')
16+
# shellcheck disable=SC2001
17+
simple_module_name=$(echo "$module_name" | sed 's/-[0-9.]*$//')
18+
19+
if [[ "$simple_module_name" == *jaxrs* ]]; then
20+
# TODO these need some work still
21+
continue
22+
fi
23+
if [[ "$simple_module_name" == *jaxws* ]]; then
24+
# TODO these need some work still
25+
continue
26+
fi
27+
if [[ "$simple_module_name" == jdbc ]]; then
28+
# TODO split jdbc-datasource out into separate instrumentation?
29+
continue
30+
fi
31+
if [[ "$simple_module_name" == kafka-clients ]]; then
32+
# TODO split kafka client metrics out into separate instrumentation?
33+
continue
34+
fi
35+
if [[ "$simple_module_name" == quarkus-resteasy-reactive ]]; then
36+
# TODO module is missing a base version
37+
continue
38+
fi
39+
40+
if [ "$module_name" == "$simple_module_name" ]; then
41+
expected="super\(\n? *\"$simple_module_name\""
42+
else
43+
expected="super\(\n? *\"$simple_module_name\",\n? *\"$module_name\""
44+
fi
45+
46+
echo "$module_name"
47+
48+
matches=$(perl -0 -ne "print if /$expected/" "$file" | wc -l)
49+
if [ "$matches" == 0 ]; then
50+
echo "Expected to find $expected in $file"
51+
exit 1
52+
fi
53+
54+
done
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash -e
2+
3+
# all missing version coverage should be documented in supported-libraries.md
4+
5+
if grep -r --include build.gradle.kts latestDepTestLibrary instrumentation \
6+
| grep -v :+\" \
7+
| grep -v "// see .* module" \
8+
| grep -v "// see test suite below" \
9+
| grep -v "// no longer applicable" \
10+
| grep -v "// related dependency" \
11+
| grep -v "// native on-by-default instrumentation after this version" \
12+
| grep -v "// documented limitation" \
13+
| grep -v "instrumentation/jaxrs-client/jaxrs-client-2.0-testing/build.gradle.kts"; then
14+
15+
echo
16+
echo "Found an undocumented latestDepTestLibrary (see above)."
17+
echo
18+
echo "See .gith/scripts/check-latest-dep-test-overrides.sh in this repository"
19+
echo "and add one of the required comments."
20+
exit 1
21+
fi

.github/scripts/find-instrumentation-with-upper-version-limits.sh

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

.github/workflows/build-common.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,20 @@ jobs:
119119
exit 1
120120
fi
121121
122+
check-javaagent-suppression-keys:
123+
runs-on: ubuntu-latest
124+
steps:
125+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
126+
127+
- run: .github/scripts/check-javaagent-suppression-keys.sh
128+
129+
check-latest-dep-test-overrides:
130+
runs-on: ubuntu-latest
131+
steps:
132+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
133+
134+
- run: .github/scripts/check-latest-dep-test-overrides.sh
135+
122136
build:
123137
runs-on: ubuntu-latest
124138
steps:

.github/workflows/issue-management-stale-action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ jobs:
1818
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
1919
with:
2020
repo-token: ${{ secrets.GITHUB_TOKEN }}
21-
# TODO (trask) update back to 7 days after end of year break
22-
days-before-stale: 21
21+
days-before-stale: 7
2322
days-before-close: 7
2423
only-labels: "needs author feedback"
2524
stale-issue-label: stale

CHANGELOG.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44

55
### Migration notes
66

7-
In preparation for stabilizing HTTP library instrumentation soon:
8-
9-
- `setCaptured*Headers(List)` methods in `*TelemetryBuilder` classes were changed to
10-
`setCaptured*Headers(Collection)`
11-
([#12901](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12901))
12-
- `setKnownMethods(Set)` methods in `*TelemetryBuilder` classes were changed to
13-
`setKnownMethods(Collection)`
14-
([#12902](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12902))
7+
- Some Java agent instrumentation suppression keys have been renamed to match their module names:
8+
- `elasticsearch-rest-6.0` --> `elasticsearch-rest-6.4`
9+
- `internal-application-logging` --> `internal-application-logger`
10+
- `javalin-5` -> `javalin-5.0`
11+
- `pulsar-2.8.0` -> `pulsar-2.8`
12+
- In preparation for stabilizing HTTP library instrumentation soon:
13+
- `setCaptured*Headers(List)` methods in `*TelemetryBuilder` classes were changed to
14+
`setCaptured*Headers(Collection)`
15+
([#12901](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12901))
16+
- `setKnownMethods(Set)` methods in `*TelemetryBuilder` classes were changed to
17+
`setKnownMethods(Collection)`
18+
([#12902](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12902))
1519

1620
## Version 2.11.0 (2024-12-23)
1721

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ https://gradle.com/s/ila4qwp5lcf5s
8787
```
8888

8989
Opening the build scan link can sometimes take several seconds (it's a large build), but it
90-
typically makes it a lot clearer what's failing.
90+
typically makes it a lot clearer what's failing. Sometimes there will be several build scans in a
91+
log, so look for one that follows the "BUILD FAILED" message.
9192

9293
You can also try the "Explain error" button at the top of the GitHub Actions page,
9394
which often does a reasonable job of parsing the long build log and displaying the important part.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
161161
Triagers ([@open-telemetry/java-instrumentation-triagers](https://github.com/orgs/open-telemetry/teams/java-instrumentation-triagers)):
162162

163163
- [Jonas Kunz](https://github.com/JonasKunz), Elastic
164-
- [Steve Rao](https://github.com/steverao), Alibaba
165164
- [Sylvain Juge](https://github.com/SylvainJuge), Elastic
166165

167166
Approvers ([@open-telemetry/java-instrumentation-approvers](https://github.com/orgs/open-telemetry/teams/java-instrumentation-approvers)):
@@ -172,6 +171,7 @@ Approvers ([@open-telemetry/java-instrumentation-approvers](https://github.com/o
172171
- [Jay DeLuca](https://github.com/jaydeluca)
173172
- [Jean Bisutti](https://github.com/jeanbisutti), Microsoft
174173
- [John Watson](https://github.com/jkwatson), Cloudera
174+
- [Steve Rao](https://github.com/steverao), Alibaba
175175

176176
Maintainers ([@open-telemetry/java-instrumentation-maintainers](https://github.com/orgs/open-telemetry/teams/java-instrumentation-maintainers)):
177177

conventions/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ dependencies {
7474
testImplementation(enforcedPlatform("org.junit:junit-bom:5.11.4"))
7575
testImplementation("org.junit.jupiter:junit-jupiter-api")
7676
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
77-
testImplementation("org.assertj:assertj-core:3.27.0")
77+
testImplementation("org.assertj:assertj-core:3.27.2")
7878
}

conventions/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ codenarc {
430430
checkstyle {
431431
configFile = rootProject.file("buildscripts/checkstyle.xml")
432432
// this version should match the version of google_checks.xml used as basis for above configuration
433-
toolVersion = "10.21.0"
433+
toolVersion = "10.21.1"
434434
maxWarnings = 0
435435
}
436436

0 commit comments

Comments
 (0)