Skip to content

Commit 9a00da9

Browse files
committed
Merge branch 'main' of github.com:jaydeluca/opentelemetry-java-instrumentation into internal-tests
2 parents b81f295 + d69fd1a commit 9a00da9

File tree

1,722 files changed

+49694
-31299
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,722 files changed

+49694
-31299
lines changed

.github/renovate.json5

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"groupName": "quarkus packages"
4747
},
4848
{
49-
"matchPackagePrefixes": ["com.gradle.enterprise"],
50-
"groupName": "gradle enterprise packages"
49+
"matchPackagePrefixes": ["com.gradle.develocity"],
50+
"groupName": "gradle develocity packages"
5151
},
5252
{
5353
"matchPackagePrefixes": ["org.eclipse.jetty:"],
@@ -149,6 +149,14 @@
149149
"matchUpdateTypes": ["major"],
150150
"enabled": false
151151
},
152+
{
153+
// intentionally pinning specifically to guice 5 in the play smoke test
154+
// until we are able to test against the latest version of play
155+
"matchFileNames": ["smoke-tests/images/play/build.gradle.kts"],
156+
"matchPackagePrefixes": ["com.google.inject:", "com.google.inject.extensions:"],
157+
"matchUpdateTypes": ["major"],
158+
"enabled": false
159+
},
152160
{
153161
// intentionally aligning both netty 4.0 and 4.1 version in this convention
154162
"matchFileNames": ["conventions/src/main/kotlin/otel.java-conventions.gradle.kts"],

.github/repository-settings.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,18 @@ for [`dependabot/**/**`](https://github.com/open-telemetry/community/blob/main/d
6464

6565
## Secrets and variables > Actions
6666

67+
### Repository secrets
68+
6769
- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
6870
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
69-
- `GRADLE_ENTERPRISE_ACCESS_KEY` - owned by [@trask](https://github.com/trask)
70-
- Generated at https://ge.opentelemetry.io > My settings > Access keys
71-
- format of env var is `ge.opentelemetry.io=<access key>`,
72-
see [docs](https://docs.gradle.com/enterprise/gradle-plugin/#via_environment_variable)
7371
- `GRADLE_PUBLISH_KEY`
7472
- `GRADLE_PUBLISH_SECRET`
7573
- `NVD_API_KEY` - stored in OpenTelemetry-Java 1Password
76-
- `OPENTELEMETRYBOT_GITHUB_TOKEN` - owned by [@trask](https://github.com/trask)
74+
- Generated at https://nvd.nist.gov/developers/request-an-api-key
75+
- Key is associated with [@trask](https://github.com/trask)'s gmail address
7776
- `SONATYPE_KEY` - owned by [@trask](https://github.com/trask)
7877
- `SONATYPE_USER` - owned by [@trask](https://github.com/trask)
78+
79+
### Organization secrets
80+
81+
- `OPENTELEMETRYBOT_GITHUB_TOKEN`
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/scripts/get-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash -e
22

3-
grep -Po "val stableVersion = \"\K[0-9]+.[0-9]+.[0-9]+" version.gradle.kts
3+
grep "val stableVersion = " version.gradle.kts | grep -Eo "[0-9]+.[0-9]+.[0-9]+"

.github/scripts/markdown-link-check-config.json

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

.github/scripts/markdown-link-check-with-retry.sh

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

.github/workflows/auto-update-otel-sdk.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
latest-version: ${{ steps.check-versions.outputs.latest-version }}
1515
already-opened: ${{ steps.check-versions.outputs.already-opened }}
1616
steps:
17-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818

1919
- id: check-versions
2020
name: Check versions
@@ -52,7 +52,7 @@ jobs:
5252
needs:
5353
- check-versions
5454
steps:
55-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
55+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5656

5757
- name: Update version
5858
env:
@@ -66,13 +66,13 @@ jobs:
6666
run: .github/scripts/gha-free-disk-space.sh
6767

6868
- name: Set up JDK for running Gradle
69-
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
69+
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
7070
with:
7171
distribution: temurin
7272
java-version-file: .java-version
7373

7474
- name: Setup Gradle
75-
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
75+
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
7676

7777
- name: Update license report
7878
run: ./gradlew generateLicenseReport

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
exit 1
2222
fi
2323
24-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525
with:
2626
# history is needed to run git cherry-pick below
2727
fetch-depth: 0

0 commit comments

Comments
 (0)