Skip to content

Commit 7d2f3a5

Browse files
Merge branch 'main' into aerospike-client-instrumentation
2 parents 3a3e509 + 11773aa commit 7d2f3a5

File tree

3,058 files changed

+105894
-59128
lines changed

Some content is hidden

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

3,058 files changed

+105894
-59128
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Learn about membership in OpenTelemetry community:
3-
# https://github.com/open-telemetry/community/blob/main/community-membership.md
3+
# https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md
44
#
55
#
66
# Learn about CODEOWNERS file format:
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
services:
2+
mongodb:
3+
image: mongo:4.0
4+
ports:
5+
- "27017:27017"
6+
7+
zookeeper:
8+
image: confluentinc/cp-zookeeper:6.2.10
9+
environment:
10+
ZOOKEEPER_CLIENT_PORT: 2181
11+
ZOOKEEPER_TICK_TIME: 2000
12+
ports:
13+
- "22181:2181"
14+
15+
kafka:
16+
image: confluentinc/cp-kafka:6.2.10
17+
ports:
18+
- 9094:9094
19+
depends_on:
20+
- zookeeper
21+
environment:
22+
KAFKA_BROKER_ID: 1
23+
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
24+
KAFKA_LISTENERS: INTERNAL://0.0.0.0:9092,OUTSIDE://0.0.0.0:9094
25+
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,OUTSIDE://localhost:9094
26+
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT
27+
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
28+
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
29+
KAFKA_DEFAULT_REPLICATION_FACTOR: 1
30+
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
31+
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1

.github/labeler.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
test native:
2+
- all:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- instrumentation/logback/logback-appender-10/library/**
6+
- instrumentation/jdbc/library/**
7+
- instrumentation/spring/**
8+
- smoke-tests-otel-starter/**
9+
- dependencyManagement/build.gradle.kts
10+
- all-globs-to-all-files: '!instrumentation/spring/**/javaagent/**'

.github/renovate.json5

+68-7
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,35 @@
44
"config:base"
55
],
66
"ignorePaths": ["instrumentation/**"],
7-
"baseBranches": ["main", "release/v1.32.x"],
7+
// needed in order to get patch-only updates in package rules below
8+
// unfortunately you can't combine updateTypes and separateMinorPatch in the same package rule
9+
// so we have to apply it globally here, see
10+
// https://github.com/renovatebot/renovate/discussions/8399#discussioncomment-305798
11+
"separateMinorPatch": true,
812
"packageRules": [
13+
{
14+
// this is to reduce the number of renovate PRs by consolidating them into a weekly batch
15+
"matchManagers": ["github-actions"],
16+
"extends": ["schedule:weekly"],
17+
"groupName": "github actions",
18+
"separateMinorPatch": false // overrides separateMinorPatch specified above
19+
},
20+
{
21+
"matchPackageNames": [
22+
"io.opentelemetry.contrib:opentelemetry-aws-resources",
23+
"io.opentelemetry.contrib:opentelemetry-aws-xray-propagator",
24+
"io.opentelemetry.contrib:opentelemetry-gcp-resources",
25+
"io.opentelemetry.contrib:opentelemetry-baggage-processor",
26+
"io.opentelemetry.proto:opentelemetry-proto",
27+
"io.opentelemetry.semconv:opentelemetry-semconv"
28+
],
29+
// Renovate's default behavior is only to update from unstable -> unstable if it's for the
30+
// major.minor.patch, under the assumption that you would want to update to the stable version
31+
// of that release instead of the unstable version for a future release
32+
// (TODO remove once the artifacts above release stable versions)
33+
"ignoreUnstable": false,
34+
"allowedVersions": "!/\\-SNAPSHOT$/"
35+
},
936
{
1037
"matchPackagePrefixes": ["ch.qos.logback:"],
1138
"groupName": "logback packages"
@@ -19,8 +46,8 @@
1946
"groupName": "quarkus packages"
2047
},
2148
{
22-
"matchPackagePrefixes": ["com.gradle.enterprise"],
23-
"groupName": "gradle enterprise packages"
49+
"matchPackagePrefixes": ["com.gradle.develocity"],
50+
"groupName": "gradle develocity packages"
2451
},
2552
{
2653
"matchPackagePrefixes": ["org.eclipse.jetty:"],
@@ -42,6 +69,10 @@
4269
"matchPackagePrefixes": ["com.fasterxml.jackson"],
4370
"groupName": "jackson packages"
4471
},
72+
{
73+
"matchPackagePrefixes": ["com.gradleup.shadow"],
74+
"groupName": "gradle shadow packages"
75+
},
4576
{
4677
// prevent update to 2.4-groovy-4.0-SNAPSHOT
4778
"matchPackageNames": ["org.spockframework:spock-bom"],
@@ -77,9 +108,31 @@
77108
},
78109
{
79110
// intentionally using Spring Boot 2 in this smoke tests
80-
"matchFileNames": ["smoke-tests/images/spring-boot/build.gradle.kts"],
81-
"matchPackageNames": ["org.springframework.boot", "org.springframework.boot:spring-boot-dependencies"],
82-
"matchUpdateTypes": ["major"],
111+
// new versions of Spring Boot 3 are tested with
112+
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/dc4330e0a3060bd7d8c4090ad0b8fc4727e68113/settings.gradle.kts#L43-L45
113+
"matchFileNames": [
114+
"smoke-tests/images/spring-boot/build.gradle.kts",
115+
"smoke-tests-otel-starter/spring-boot-2/build.gradle.kts",
116+
"smoke-tests-otel-starter/spring-boot-common/build.gradle.kts",
117+
"smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts",
118+
"smoke-tests-otel-starter/spring-boot-reactive-common/build.gradle.kts",
119+
"smoke-tests-otel-starter/spring-smoke-testing/build.gradle.kts"
120+
],
121+
"matchPackageNames": [
122+
"org.slf4j:slf4j-api",
123+
"org.springframework.boot:org.springframework.boot.gradle.plugin", // this is for plugin id "org.springframework.boot"
124+
"org.springframework.boot:spring-boot-dependencies"],
125+
"matchUpdateTypes": ["major", "minor"],
126+
"enabled": false,
127+
},
128+
{
129+
// intentionally using Spring Boot 2 in this smoke tests
130+
"matchFileNames": [
131+
"smoke-tests-otel-starter/spring-boot-2/build.gradle.kts",
132+
"smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts"
133+
],
134+
"matchPackageNames": ["ch.qos.logback:logback-classic"],
135+
"matchUpdateTypes": ["minor"],
83136
"enabled": false,
84137
},
85138
{
@@ -96,6 +149,14 @@
96149
"matchUpdateTypes": ["major"],
97150
"enabled": false
98151
},
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+
},
99160
{
100161
// intentionally aligning both netty 4.0 and 4.1 version in this convention
101162
"matchFileNames": ["conventions/src/main/kotlin/otel.java-conventions.gradle.kts"],
@@ -106,7 +167,7 @@
106167
{
107168
// intentionally using scala 2.11 in otel.scala-conventions.gradle.kts
108169
"matchFileNames": ["conventions/src/main/kotlin/otel.scala-conventions.gradle.kts"],
109-
"matchPackagePrefixes": ["org.scala-lang:scala-library"],
170+
"matchPackageNames": ["org.scala-lang:scala-library"],
110171
"matchUpdateTypes": ["major", "minor"],
111172
"enabled": false
112173
},

.github/repository-settings.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
2020

2121
## Branch protections
2222

23+
The order of branch protection rules
24+
[can be important](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#about-branch-protection-rules).
25+
The branch protection rules below should be added before the `**/**` branch protection rule
26+
(this may require deleting the `**/**` rule and recreating it at the end).
27+
2328
### `main`
2429

2530
- Require branches to be up to date before merging: UNCHECKED
@@ -59,8 +64,6 @@ for [`dependabot/**/**`](https://github.com/open-telemetry/community/blob/main/d
5964

6065
## Secrets and variables > Actions
6166

62-
- `GE_CACHE_PASSWORD`
63-
- `GE_CACHE_USERNAME`
6467
- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
6568
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
6669
- `GRADLE_ENTERPRISE_ACCESS_KEY` - owned by [@trask](https://github.com/trask)

.github/scripts/generate-release-contributors.sh

-2
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,11 @@ query($q: String!, $endCursor: String) {
7878
| sed 's/^\["//' \
7979
| sed 's/".*//')
8080

81-
# TODO (trask) can remove dependabot line after next release
8281
echo "$contributors1" "$contributors2" \
8382
| sed 's/ /\n/g' \
8483
| sort -uf \
8584
| grep -v linux-foundation-easycla \
8685
| grep -v github-actions \
87-
| grep -v dependabot \
8886
| grep -v renovate \
8987
| grep -v opentelemetrybot \
9088
| sed 's/^/@/'

.github/scripts/update-version.sh

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ sed -Ei "s/(opentelemetryJavaagentAlpha *: )\"[^\"]*\"/\1\"$alpha_version\"/" ex
2121

2222
sed -Ei "s/(io.opentelemetry.instrumentation.muzzle-generation\" version )\"[^\"]*\"/\1\"$alpha_version\"/" examples/extension/build.gradle
2323
sed -Ei "s/(io.opentelemetry.instrumentation.muzzle-check\" version )\"[^\"]*\"/\1\"$alpha_version\"/" examples/extension/build.gradle
24+
25+
sed -Ei "1 s/(Comparing source compatibility of [a-z-]+)-[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)?.jar/\1-$version.jar/" docs/apidiffs/current_vs_latest/*.txt

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

+11-8
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
55+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5656

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

6868
- name: Set up JDK for running Gradle
69-
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
69+
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
7070
with:
7171
distribution: temurin
72-
java-version: 17.0.6
72+
java-version-file: .java-version
73+
74+
- name: Setup Gradle
75+
uses: gradle/actions/setup-gradle@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4.2.0
7376

7477
- name: Update license report
75-
uses: gradle/gradle-build-action@3b1b3b9a2104c2b47fbae53f3938079c00c9bb87 # v3.0.0
76-
with:
77-
arguments: generateLicenseReport
78+
run: ./gradlew generateLicenseReport
7879

7980
- name: Undo license report clean
8081
if: failure()
@@ -92,7 +93,9 @@ jobs:
9293
branch="opentelemetrybot/update-opentelemetry-sdk-to-${VERSION}"
9394
9495
git checkout -b $branch
95-
git commit -a -m "$message"
96+
git add -u
97+
git add licenses
98+
git commit -m "$message"
9699
git push --set-upstream origin $branch
97100
gh pr create --title "$message" \
98101
--body "$body" \

.github/workflows/backport.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
exit 1
2222
fi
2323
24-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
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)