Skip to content

Commit 59c906c

Browse files
authored
Merge branch 'main' into db-networking-attributes
2 parents 562a327 + 190192b commit 59c906c

File tree

197 files changed

+2793
-786
lines changed

Some content is hidden

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

197 files changed

+2793
-786
lines changed

.github/renovate.json5

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@
190190
enabled: false,
191191
},
192192
{
193-
// intentionally using Spring Boot 2 in this smoke tests
194-
// new versions of Spring Boot 3 are tested with
195-
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/dc4330e0a3060bd7d8c4090ad0b8fc4727e68113/settings.gradle.kts#L43-L45
193+
// intentionally using Spring Boot 2 in these smoke tests
196194
matchFileNames: [
197195
'smoke-tests/images/spring-boot/build.gradle.kts',
198196
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
@@ -203,42 +201,28 @@
203201
],
204202
matchPackageNames: [
205203
'org.slf4j:slf4j-api',
206-
'org.springframework.boot:org.springframework.boot.gradle.plugin', // this is for plugin id "org.springframework.boot"
207-
'org.springframework.boot:spring-boot-dependencies',
204+
'org.springframework.boot:**',
208205
],
209206
matchUpdateTypes: [
210207
'major',
211-
'minor',
212208
],
213209
enabled: false,
214210
},
215211
{
216-
// intentionally using Spring Boot 2 in this smoke tests
212+
// intentionally using Logback 1.2 (for Spring Boot 2) in these smoke tests
217213
matchFileNames: [
214+
'smoke-tests/images/spring-boot/build.gradle.kts',
218215
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
219216
'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts',
220217
],
221218
matchPackageNames: [
222-
'ch.qos.logback:logback-classic',
223-
],
224-
matchUpdateTypes: [
225-
'minor',
226-
],
227-
enabled: false,
228-
},
229-
{
230-
// intentionally using logback 1.2 in this smoke tests
231-
matchFileNames: [
232-
'smoke-tests/images/spring-boot/build.gradle.kts',
219+
'ch.qos.logback:**',
233220
],
234221
matchUpdateTypes: [
235222
'major',
236223
'minor',
237224
],
238225
enabled: false,
239-
matchPackageNames: [
240-
'ch.qos.logback:**',
241-
],
242226
},
243227
{
244228
// intentionally using slf4j 1 in this smoke tests
@@ -377,11 +361,11 @@
377361
datasourceTemplate: 'java-version',
378362
managerFilePatterns: [
379363
'.github/workflows/**',
380-
'**/*.gradle.kts'
364+
'**/*.gradle.kts',
381365
],
382366
matchStrings: [
383-
'(?<currentValue>\\d+) # renovate: datasource=java-version',
384-
'"(?<currentValue>\\d+)" // renovate: datasource=java-version',
367+
'(?<currentValue>\\d+) # renovate\\(java-version\\)',
368+
'"(?<currentValue>\\d+)" // renovate\\(java-version\\)',
385369
],
386370
depNameTemplate: 'java',
387371
extractVersionTemplate: '^(?<version>\\d+)',
@@ -390,7 +374,7 @@
390374
customType: 'regex',
391375
datasourceTemplate: 'pypi',
392376
managerFilePatterns: [
393-
'/^.github/workflows//',
377+
'.github/workflows/**',
394378
],
395379
matchStrings: [
396380
'pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)',
@@ -400,7 +384,7 @@
400384
customType: 'regex',
401385
datasourceTemplate: 'npm',
402386
managerFilePatterns: [
403-
'/^.github/workflows//',
387+
'.github/workflows/**',
404388
],
405389
matchStrings: [
406390
'npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)',

.github/repository-settings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ private admin repo.
1111
- `FLAKY_TEST_REPORTER_ACCESS_KEY` - owned by [@laurit](https://github.com/laurit)
1212
- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
1313
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
14-
- `GRADLE_PUBLISH_KEY`
15-
- `GRADLE_PUBLISH_SECRET`
14+
- `GRADLE_PUBLISH_KEY` - owned by [@trask](https://github.com/trask)
15+
- `GRADLE_PUBLISH_SECRET` - owned by [@trask](https://github.com/trask)
1616
- `NVD_API_KEY` - stored in OpenTelemetry-Java 1Password
1717
- Generated at https://nvd.nist.gov/developers/request-an-api-key
1818
- Key is associated with [@trask](https://github.com/trask)'s gmail address

.github/workflows/build-common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ jobs:
246246
- 11
247247
- 17
248248
- 21
249-
- 25 # renovate: datasource=java-version
249+
- 25 # renovate(java-version)
250250
- 25-deny-unsafe
251251
vm:
252252
- hotspot

.github/workflows/reusable-pr-smoke-test-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
build:
3131
runs-on: ubuntu-latest
3232
env:
33-
LATEST_JAVA_VERSION: 25 # renovate: datasource=java-version
33+
LATEST_JAVA_VERSION: 25 # renovate(java-version)
3434
steps:
3535
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3636

.github/workflows/reusable-publish-smoke-test-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
contents: read
3434
packages: write
3535
env:
36-
LATEST_JAVA_VERSION: 25 # renovate: datasource=java-version
36+
LATEST_JAVA_VERSION: 25 # renovate(java-version)
3737
steps:
3838
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3939

benchmark-overhead/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
testImplementation("org.testcontainers:testcontainers-postgresql")
2424
testImplementation("org.junit.jupiter:junit-jupiter-api")
2525
testImplementation("org.junit.jupiter:junit-jupiter-params")
26-
testImplementation("com.squareup.okhttp3:okhttp:5.3.0")
26+
testImplementation("com.squareup.okhttp3:okhttp:5.3.1")
2727
testImplementation("org.jooq:joox:2.0.1")
2828
testImplementation("com.jayway.jsonpath:json-path:2.10.0")
2929
testImplementation("org.slf4j:slf4j-simple:2.0.17")

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ plugins {
2222

2323
buildscript {
2424
dependencies {
25-
classpath("com.squareup.okhttp3:okhttp:5.3.0")
25+
classpath("com.squareup.okhttp3:okhttp:5.3.1")
2626
}
2727
}
2828

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ tasks {
140140
// This check causes too many failures, ignore the ones in tests
141141
disable("OtelCanIgnoreReturnValueSuggester")
142142
disable("OtelInternalJavadoc")
143+
disable("SuppressWarningsWithoutExplanation")
143144
}
144145
}
145146
}

declarative-config-bridge/src/main/java/io/opentelemetry/instrumentation/config/bridge/DeclarativeConfigPropertiesBridge.java

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import java.util.Map;
1717
import java.util.Objects;
1818
import java.util.function.BiFunction;
19+
import java.util.function.Function;
1920
import javax.annotation.Nullable;
2021

2122
/**
@@ -106,18 +107,17 @@ public Duration getDuration(String propertyName) {
106107
return Duration.ofMillis(millis);
107108
}
108109

109-
@SuppressWarnings("unchecked")
110+
@SuppressWarnings("unchecked") // we expect to have only lists of strings in override values
110111
@Override
111112
public List<String> getList(String propertyName) {
112113
List<String> propertyValue =
113114
getPropertyValue(
114115
propertyName,
115-
List.class,
116+
o -> (List<String>) o,
116117
(properties, lastPart) -> properties.getScalarList(lastPart, String.class));
117118
return propertyValue == null ? Collections.emptyList() : propertyValue;
118119
}
119120

120-
@SuppressWarnings("unchecked")
121121
@Override
122122
public Map<String, String> getMap(String propertyName) {
123123
DeclarativeConfigProperties propertyValue =
@@ -147,7 +147,15 @@ private <T> T getPropertyValue(
147147
String property,
148148
Class<T> clazz,
149149
BiFunction<DeclarativeConfigProperties, String, T> extractor) {
150-
T override = clazz.cast(overrideValues.get(property));
150+
return getPropertyValue(property, clazz::cast, extractor);
151+
}
152+
153+
@Nullable
154+
private <T> T getPropertyValue(
155+
String property,
156+
Function<Object, T> converter,
157+
BiFunction<DeclarativeConfigProperties, String, T> extractor) {
158+
T override = converter.apply(overrideValues.get(property));
151159
if (override != null) {
152160
return override;
153161
}

dependencyManagement/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ val DEPENDENCY_BOMS = listOf(
3737

3838
val autoServiceVersion = "1.1.1"
3939
val autoValueVersion = "1.11.1"
40-
val errorProneVersion = "2.43.0"
40+
val errorProneVersion = "2.44.0"
4141
val byteBuddyVersion = "1.18.1"
4242
val asmVersion = "9.9"
4343
val jmhVersion = "1.37"
@@ -104,7 +104,7 @@ val DEPENDENCIES = listOf(
104104
"io.opentelemetry.contrib:opentelemetry-cloudfoundry-resources:${otelContribVersion}",
105105
"io.opentelemetry.contrib:opentelemetry-baggage-processor:${otelContribVersion}",
106106
"io.opentelemetry.contrib:opentelemetry-samplers:${otelContribVersion}",
107-
"io.opentelemetry.proto:opentelemetry-proto:1.8.0-alpha",
107+
"io.opentelemetry.proto:opentelemetry-proto:1.9.0-alpha",
108108
"io.opentelemetry:opentelemetry-extension-annotations:1.18.0", // deprecated, no longer part of bom
109109
"org.assertj:assertj-core:3.27.6",
110110
"org.awaitility:awaitility:4.3.0",

0 commit comments

Comments
 (0)