Skip to content

Commit 5d0408a

Browse files
committed
Merge branch 'main' into docs/experimental-snippet
2 parents ea6a299 + 3e1647c commit 5d0408a

File tree

172 files changed

+7394
-632
lines changed

Some content is hidden

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

172 files changed

+7394
-632
lines changed

.fossa.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,12 @@ targets:
721721
- type: gradle
722722
path: ./
723723
target: ':instrumentation:okhttp:okhttp-3.0:library'
724+
- type: gradle
725+
path: ./
726+
target: ':instrumentation:openai:openai-java-1.1:javaagent'
727+
- type: gradle
728+
path: ./
729+
target: ':instrumentation:openai:openai-java-1.1:library'
724730
- type: gradle
725731
path: ./
726732
target: ':instrumentation:opensearch:opensearch-rest-1.0:javaagent'

.github/renovate.json5

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,16 @@
143143
],
144144
enabled: false,
145145
},
146+
{
147+
// wiremock 3+ requires Java 11+
148+
matchUpdateTypes: [
149+
'major',
150+
],
151+
enabled: false,
152+
matchPackageNames: [
153+
'com.github.tomakehurst:wiremock-jre8'
154+
],
155+
},
146156
{
147157
// intentionally using Spring Boot 2 in this smoke tests
148158
// new versions of Spring Boot 3 are tested with

.github/workflows/auto-license-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- id: create-patch
4444
name: Create patch file
4545
run: |
46-
git add -N licenses
46+
git add -N --ignore-removal licenses
4747
git diff > patch
4848
if [ -s patch ]; then
4949
echo "exists=true" >> "$GITHUB_OUTPUT"

.github/workflows/auto-update-pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
if: steps.unzip-patch.outputs.exists == 'true'
7171
run: |
7272
git apply "${{ runner.temp }}/patch"
73+
git add licenses
7374
git commit -a -m "./gradlew ${{ steps.gradle-task.outputs.name }}"
7475
git push
7576

.github/workflows/build-common.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ jobs:
194194
cache-read-only: ${{ inputs.cache-read-only }}
195195

196196
- name: Build
197-
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
198-
run: ./gradlew check spdxSbom -x javadoc -x spotlessCheck -PskipTests=true ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
197+
run: ./gradlew check javadoc sourcesJar spdxSbom -x spotlessCheck -PskipTests=true ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
199198

200199
- name: Check for jApiCmp diffs
201200
# The jApiCmp diff compares current to latest, which isn't appropriate for release branches
@@ -512,12 +511,10 @@ jobs:
512511
cache-read-only: ${{ inputs.cache-read-only }}
513512

514513
- name: Local publish of artifacts
515-
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
516-
run: ./gradlew publishToMavenLocal -x javadoc
514+
run: ./gradlew publishToMavenLocal
517515

518516
- name: Local publish of gradle plugins
519-
# javadoc task fails sporadically fetching https://docs.oracle.com/javase/8/docs/api/
520-
run: ./gradlew publishToMavenLocal -x javadoc
517+
run: ./gradlew publishToMavenLocal
521518
working-directory: gradle-plugins
522519

523520
- name: Build distro

.github/workflows/codeql.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838

3939
# don't need to free disk space (which takes time) since running on larger machine
4040

41+
- name: Set up JDK 11
42+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
43+
with:
44+
distribution: temurin
45+
java-version: 11
46+
4147
- name: Set up JDK for running Gradle
4248
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
4349
with:

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,50 @@
22

33
## Unreleased
44

5+
## Version 2.18.0 (2025-07-17)
6+
7+
### 🌟 New javaagent instrumentation
8+
9+
- Add initial instrumentation for OpenAI client
10+
([#14221](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14221))
11+
12+
### 🌟 New library instrumentation
13+
14+
- Add initial instrumentation for OpenAI client
15+
([#14221](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14221))
16+
17+
### 📈 Enhancements
18+
19+
- Implement stable semantic conventions for `code.*` attributes with opt-in support
20+
([#13860](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13860))
21+
- Add span kind configuration support for method instrumentation and declarative tooling
22+
([#14014](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14014))
23+
- Add support for vendor-specific declarative configuration properties
24+
([#14016](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14016))
25+
- Add auto-instrumentation support for AWS Secrets Manager SDK v1
26+
([#14027](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14027))
27+
- Add `aws.sns.topic.arn` semantic convention support for AWS SNS SDK v1 and v2
28+
([#14035](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14035))
29+
- Remove `thread.name` attribute from experimental JVM metrics
30+
([#14061](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14061))
31+
- Enhance and align Jetty JMX metrics with OpenTelemetry semantic conventions
32+
([#14067](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14067))
33+
- Add support for latest spring-cloud-aws versions
34+
([#14207](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14207))
35+
- Add JDBC parameter capture support for `PreparedStatement.setObject()` method
36+
([#14219](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14219))
37+
- Add `aws.lambda.resource.mapping.id` and experimental Lambda attributes for AWS Lambda SDK
38+
([#14229](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14229))
39+
- Clear context class loader from OpenTelemetry internal threads to prevent leaks
40+
([#14241](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14241))
41+
42+
### 🛠️ Bug fixes
43+
44+
- Fix JDBC URL parser StringIndexOutOfBoundsException with malformed connection strings
45+
([#14151](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14151))
46+
- Fix empty units in JMX state metrics definitions
47+
([#14194](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14194))
48+
549
## Version 2.17.0 (2025-06-20)
650

751
### Migration notes

benchmark-overhead/Dockerfile.petclinic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:11.0.27_6-jdk@sha256:2fd4e5e0ba72f725016e757a5688ce14fda6a792da566fca62ef6ff73f50df35 as app-build
1+
FROM eclipse-temurin:11.0.27_6-jdk@sha256:cbc64d6d1a253561c029fd951575c449d70558063d5f898ab0b6213bc1fb0109 as app-build
22

33
# This is the base image that will contain a built version of the spring-petclinic-rest
44
# application. Installing the dependencies and maven compiling the application is time
@@ -13,7 +13,7 @@ RUN git checkout 8aa4d49
1313
RUN ./mvnw package -Dmaven.test.skip=true
1414
RUN cp target/spring-petclinic-rest*.jar /app/spring-petclinic-rest.jar
1515

16-
FROM bellsoft/liberica-openjdk-alpine:21.0.7@sha256:143e4c24da2872fad6803fcbde5d335bbbe47dddb8ebf20fd916c02bdc7f463b
16+
FROM bellsoft/liberica-openjdk-alpine:21.0.8@sha256:c4052811bba52c7a06ebde235c839108bf723dfab3c65066f61145a252480b16
1717
COPY --from=app-build /app/spring-petclinic-rest.jar /app/spring-petclinic-rest.jar
1818
WORKDIR /app
1919
EXPOSE 9966

benchmark-overhead/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id("java")
3-
id("com.diffplug.spotless") version "7.1.0"
3+
id("com.diffplug.spotless") version "7.2.1"
44
}
55

66
spotless {
@@ -16,7 +16,7 @@ repositories {
1616
}
1717

1818
dependencies {
19-
implementation(enforcedPlatform("org.junit:junit-bom:5.13.3"))
19+
implementation(enforcedPlatform("org.junit:junit-bom:5.13.4"))
2020

2121
testImplementation("org.testcontainers:testcontainers:1.21.3")
2222
testImplementation("org.testcontainers:postgresql:1.21.3")

buildscripts/checkstyle.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@
254254
<property name="arrayInitIndent" value="2"/>
255255
</module>
256256
-->
257+
<!-- handled by error prone
257258
<module name="AbbreviationAsWordInName">
258259
<property name="ignoreFinal" value="false"/>
259260
<property name="allowedAbbreviationLength" value="0"/>
@@ -262,6 +263,7 @@
262263
PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
263264
RECORD_COMPONENT_DEF"/>
264265
</module>
266+
-->
265267
<module name="OverloadMethodsDeclarationOrder"/>
266268
<!-- there are only a few violations of this, and they all appear to be for good reasons
267269
<module name="VariableDeclarationUsageDistance"/>

0 commit comments

Comments
 (0)