Skip to content

Commit a9d92b1

Browse files
committed
merge main
2 parents 0730a54 + 40d1728 commit a9d92b1

File tree

218 files changed

+4830
-2264
lines changed

Some content is hidden

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

218 files changed

+4830
-2264
lines changed

.fossa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ targets:
100100
- type: gradle
101101
path: ./
102102
target: ':instrumentation:external-annotations:javaagent'
103+
- type: gradle
104+
path: ./
105+
target: ':instrumentation:failsafe-3.0:library'
103106
- type: gradle
104107
path: ./
105108
target: ':instrumentation:finagle-http-23.11:javaagent'

.github/workflows/documentation-disable-list-audit.yml renamed to .github/workflows/documentation-synchronization-audit.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: opentelemetry.io documentation disable list audit
1+
name: Documentation Synchronization Audit (opentelemetry.io)
22

33
on:
44
schedule:
@@ -11,6 +11,8 @@ permissions:
1111
jobs:
1212
crawl:
1313
runs-on: ubuntu-latest
14+
outputs:
15+
audit-output: ${{ steps.audit.outputs.AUDIT_OUTPUT }}
1416
steps:
1517
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1618

@@ -26,7 +28,20 @@ jobs:
2628
run: ./gradlew :instrumentation-docs:runAnalysis
2729

2830
- name: Run doc site audit
29-
run: ./gradlew :instrumentation-docs:docSiteAudit
31+
id: audit
32+
run: |
33+
if ! output=$(./gradlew :instrumentation-docs:docSiteAudit 2>&1); then
34+
echo "AUDIT_FAILED=true" >> $GITHUB_OUTPUT
35+
echo "AUDIT_OUTPUT<<EOF" >> $GITHUB_OUTPUT
36+
# Extract only the content between our custom markers
37+
echo "$output" | sed -n '/=== AUDIT_FAILURE_START ===/,/=== AUDIT_FAILURE_END ===/p' | \
38+
sed '/=== AUDIT_FAILURE_START ===/d' | \
39+
sed '/=== AUDIT_FAILURE_END ===/d' >> $GITHUB_OUTPUT
40+
echo "EOF" >> $GITHUB_OUTPUT
41+
exit 1
42+
else
43+
echo "AUDIT_FAILED=false" >> $GITHUB_OUTPUT
44+
fi
3045
3146
workflow-notification:
3247
permissions:
@@ -38,3 +53,4 @@ jobs:
3853
uses: ./.github/workflows/reusable-workflow-notification.yml
3954
with:
4055
success: ${{ needs.crawl.result == 'success' }}
56+
failure-details: ${{ needs.crawl.outputs.audit-output }}

.github/workflows/reusable-workflow-notification.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
success:
99
type: boolean
1010
required: true
11+
failure-details:
12+
type: string
13+
required: false
1114

1215
permissions:
1316
contents: read
@@ -31,14 +34,19 @@ jobs:
3134
echo $number
3235
echo ${{ inputs.success }}
3336
37+
# Prepare the issue body with failure details if available
38+
if [[ -n "${{ inputs.failure-details }}" ]]; then
39+
issue_body="See [$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER](https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)."$'\n\n'"## Failure Details"$'\n\n'"${{ inputs.failure-details }}"
40+
else
41+
issue_body="See [$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER](https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)."
42+
fi
43+
3444
if [[ $number ]]; then
3545
if [[ "${{ inputs.success }}" == "true" ]]; then
3646
gh issue close $number
3747
else
38-
gh issue comment $number \
39-
--body "See [$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER](https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)."
48+
gh issue comment $number --body "$issue_body"
4049
fi
4150
elif [[ "${{ inputs.success }}" == "false" ]]; then
42-
gh issue create --title "Workflow failed: $GITHUB_WORKFLOW (#$GITHUB_RUN_NUMBER)" \
43-
--body "See [$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER](https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)."
51+
gh issue create --title "Workflow failed: $GITHUB_WORKFLOW (#$GITHUB_RUN_NUMBER)" --body "$issue_body"
4452
fi

benchmark-overhead-jmh/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ otelJava {
1313
}
1414

1515
dependencies {
16-
jmhImplementation("org.springframework.boot:spring-boot-starter-web:3.5.5")
16+
jmhImplementation("org.springframework.boot:spring-boot-starter-web:3.5.6")
1717
}
1818

1919
tasks {

benchmark-overhead/gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=8fad3d78296ca518113f3d29016617c7f9367dc005f932bd9d93bf45ba46072b
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
3+
distributionSha256Sum=a17ddd85a26b6a7f5ddb71ff8b05fc5104c0202c6e64782429790c933686c806
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

benchmark-overhead/gradlew

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH="\\\"\\\""
118117

119118

120119
# Determine the Java command to use to start the JVM.
@@ -172,7 +171,6 @@ fi
172171
# For Cygwin or MSYS, switch paths to Windows format before running java
173172
if "$cygwin" || "$msys" ; then
174173
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
175-
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
176174

177175
JAVACMD=$( cygpath --unix "$JAVACMD" )
178176

@@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
212210

213211
set -- \
214212
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215-
-classpath "$CLASSPATH" \
216213
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217214
"$@"
218215

benchmark-overhead/gradlew.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=
7473

7574

7675
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
76+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7877

7978
:end
8079
@rem End local scope for the variables with windows NT shell

conventions/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ dependencies {
5555

5656
// When updating, update above in plugins too
5757
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.2.1")
58-
implementation("com.google.guava:guava:33.4.8-jre")
58+
implementation("com.google.guava:guava:33.5.0-jre")
5959
implementation("com.gradleup.shadow:shadow-gradle-plugin:9.1.0")
6060
implementation("org.apache.httpcomponents:httpclient:4.5.14")
61-
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:4.1.1")
61+
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:4.2")
6262
implementation("org.owasp:dependency-check-gradle:12.1.3")
6363
implementation("ru.vyarus:gradle-animalsniffer-plugin:2.0.1")
6464
implementation("org.spdx:spdx-gradle-plugin:0.9.0")

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,19 @@ nullaway {
1818

1919
tasks {
2020
withType<JavaCompile>().configureEach {
21-
if (!name.contains("test", ignoreCase = true)) {
21+
if (name.contains("test", ignoreCase = true)) {
22+
options.errorprone.nullaway {
23+
enabled = false
24+
}
25+
} else {
2226
options.errorprone.nullaway {
2327
severity.set(CheckSeverity.ERROR)
2428
}
2529
}
30+
options.errorprone.nullaway {
31+
customInitializerAnnotations.add("org.openjdk.jmh.annotations.Setup")
32+
excludedFieldAnnotations.add("org.mockito.Mock")
33+
excludedFieldAnnotations.add("org.mockito.InjectMocks")
34+
}
2635
}
2736
}

dependencyManagement/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ val DEPENDENCY_BOMS = listOf(
2828
// even if they are only used by test dependencies, so not using junit bom since it is LGPL
2929

3030
"com.fasterxml.jackson:jackson-bom:2.20.0",
31-
"com.google.guava:guava-bom:33.4.8-jre",
31+
"com.google.guava:guava-bom:33.5.0-jre",
3232
"org.apache.groovy:groovy-bom:${groovyVersion}",
3333
"io.opentelemetry:opentelemetry-bom:${otelSdkVersion}",
3434
"io.opentelemetry:opentelemetry-bom-alpha:${otelSdkAlphaVersion}",
@@ -89,7 +89,7 @@ val DEPENDENCIES = listOf(
8989
"com.github.stefanbirkner:system-lambda:1.2.1",
9090
"com.github.stefanbirkner:system-rules:1.19.0",
9191
"uk.org.webcompere:system-stubs-jupiter:2.0.3",
92-
"com.uber.nullaway:nullaway:0.12.9",
92+
"com.uber.nullaway:nullaway:0.12.10",
9393
"commons-beanutils:commons-beanutils:1.11.0",
9494
"commons-cli:commons-cli:1.10.0",
9595
"commons-codec:commons-codec:1.19.0",
@@ -107,6 +107,7 @@ val DEPENDENCIES = listOf(
107107
"io.opentelemetry.contrib:opentelemetry-gcp-resources:${otelContribVersion}",
108108
"io.opentelemetry.contrib:opentelemetry-cloudfoundry-resources:${otelContribVersion}",
109109
"io.opentelemetry.contrib:opentelemetry-baggage-processor:${otelContribVersion}",
110+
"io.opentelemetry.contrib:opentelemetry-samplers:${otelContribVersion}",
110111
"io.opentelemetry.proto:opentelemetry-proto:1.8.0-alpha",
111112
"io.opentelemetry:opentelemetry-extension-annotations:1.18.0", // deprecated, no longer part of bom
112113
"org.assertj:assertj-core:3.27.4",

0 commit comments

Comments
 (0)