Skip to content

Commit 3d1c2cd

Browse files
committed
Merge branch 'main' of github.com:open-telemetry/opentelemetry-java-instrumentation into jmx-wildfly
2 parents db7c8a3 + 875a4db commit 3d1c2cd

File tree

50 files changed

+3189
-41
lines changed

Some content is hidden

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

50 files changed

+3189
-41
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/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

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/src/main/kotlin/otel.scala-conventions.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
}
66

77
dependencies {
8+
compileOnly("org.scala-lang:scala-library:2.11.12")
89
testCompileOnly("org.scala-lang:scala-library:2.11.12")
910
}
1011

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.18.0.jar against opentelemetry-instrumentation-annotations-2.17.0.jar
2+
No changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-instrumentation-api-2.18.0.jar against opentelemetry-instrumentation-api-2.17.0.jar
2+
No changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-spring-boot-autoconfigure-2.18.0.jar against opentelemetry-spring-boot-autoconfigure-2.17.0.jar
2+
No changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-spring-boot-starter-2.18.0.jar against opentelemetry-spring-boot-starter-2.17.0.jar
2+
No changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.18.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.17.1.jar
1+
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.19.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.18.0.jar
22
No changes.

0 commit comments

Comments
 (0)