Skip to content

Commit d4dce67

Browse files
committed
Merge branch 'camel-blueprint-classloader-fix' of github.com:evanderkoogh/opentelemetry-java-instrumentation into camel-blueprint-classloader-fix
2 parents 41c5552 + 335daa4 commit d4dce67

File tree

133 files changed

+4816
-462
lines changed

Some content is hidden

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

133 files changed

+4816
-462
lines changed

.fossa.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,12 @@ targets:
724724
- type: gradle
725725
path: ./
726726
target: ':instrumentation:okhttp:okhttp-3.0:library'
727+
- type: gradle
728+
path: ./
729+
target: ':instrumentation:openai:openai-java-1.1:javaagent'
730+
- type: gradle
731+
path: ./
732+
target: ':instrumentation:openai:openai-java-1.1:library'
727733
- type: gradle
728734
path: ./
729735
target: ':instrumentation:opensearch:opensearch-rest-1.0:javaagent'
@@ -772,6 +778,9 @@ targets:
772778
- type: gradle
773779
path: ./
774780
target: ':instrumentation:opentelemetry-api:opentelemetry-api-1.50:javaagent'
781+
- type: gradle
782+
path: ./
783+
target: ':instrumentation:opentelemetry-api:opentelemetry-api-1.52:javaagent'
775784
- type: gradle
776785
path: ./
777786
target: ':instrumentation:pekko:pekko-actor-1.0:javaagent'

.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

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: 1 addition & 1 deletion
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.0"
44
}
55

66
spotless {

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"/>

conventions/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
`kotlin-dsl`
33
// When updating, update below in dependencies too
4-
id("com.diffplug.spotless") version "7.1.0"
4+
id("com.diffplug.spotless") version "7.2.0"
55
}
66

77
spotless {
@@ -54,12 +54,12 @@ dependencies {
5454
implementation("org.apache.maven:maven-aether-provider:3.3.9")
5555

5656
// When updating, update above in plugins too
57-
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.1.0")
57+
implementation("com.diffplug.spotless:spotless-plugin-gradle:7.2.0")
5858
implementation("com.google.guava:guava:33.4.8-jre")
5959
implementation("gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.18")
6060
implementation("com.gradleup.shadow:shadow-gradle-plugin:8.3.8")
6161
implementation("org.apache.httpcomponents:httpclient:4.5.14")
62-
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:4.0.2")
62+
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:4.1")
6363
implementation("org.owasp:dependency-check-gradle:12.1.3")
6464
implementation("ru.vyarus:gradle-animalsniffer-plugin:2.0.1")
6565
implementation("org.spdx:spdx-gradle-plugin:0.9.0")

conventions/src/main/kotlin/io.opentelemetry.instrumentation.javaagent-shadowing.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ tasks.withType<ShadowJar>().configureEach {
2929
relocate("io.opentelemetry.api", "io.opentelemetry.javaagent.shaded.io.opentelemetry.api")
3030
relocate("io.opentelemetry.semconv", "io.opentelemetry.javaagent.shaded.io.opentelemetry.semconv")
3131
relocate("io.opentelemetry.context", "io.opentelemetry.javaagent.shaded.io.opentelemetry.context")
32+
relocate("io.opentelemetry.common", "io.opentelemetry.javaagent.shaded.io.opentelemetry.common")
3233
}
3334

3435
// relocate(the OpenTelemetry extensions that are used by instrumentation modules)

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
if ((project.path.endsWith(":testing") || name.contains("Test")) && !project.name.equals("custom-checks")) {
141141
// This check causes too many failures, ignore the ones in tests
142142
disable("OtelCanIgnoreReturnValueSuggester")
143+
disable("OtelInternalJavadoc")
143144
}
144145
}
145146
}

0 commit comments

Comments
 (0)