Skip to content

Commit cbd5825

Browse files
authored
Merge branch 'main' into kafka-connect-metadata
2 parents 4f48138 + 75387d5 commit cbd5825

File tree

48 files changed

+5730
-317
lines changed

Some content is hidden

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

48 files changed

+5730
-317
lines changed

.github/workflows/prepare-release-branch.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
- prereqs
3232
steps:
3333
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
34+
with:
35+
# history is needed to allow fast-forward push below in case
36+
# re-running this workflow after merging additional PRs to main
37+
fetch-depth: 0
3438

3539
- name: Create release branch
3640
run: |

.github/workflows/release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
release:
2222
permissions:
2323
contents: write # for creating the release
24+
id-token: write # for signing artifacts with Sigstore
25+
attestations: write # for uploading attestations
2426
runs-on: ubuntu-latest
2527
needs:
2628
- common
@@ -170,13 +172,22 @@ jobs:
170172
.github/scripts/generate-release-contributors.sh v$PRIOR_VERSION >> /tmp/release-notes.txt
171173
fi
172174
175+
- name: Simplify paths for attaching
176+
run: |
177+
cp javaagent/build/libs/opentelemetry-javaagent-${VERSION}.jar opentelemetry-javaagent.jar
178+
cp javaagent/build/libs/opentelemetry-javaagent-${VERSION}.jar.asc opentelemetry-javaagent.jar.asc
179+
180+
- uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
181+
with:
182+
subject-path: |
183+
opentelemetry-javaagent.jar
184+
opentelemetry-java-instrumentation-SBOM.zip
185+
173186
- id: create-github-release
174187
name: Create GitHub release
175188
env:
176189
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177190
run: |
178-
cp javaagent/build/libs/opentelemetry-javaagent-${VERSION}.jar opentelemetry-javaagent.jar
179-
cp javaagent/build/libs/opentelemetry-javaagent-${VERSION}.jar.asc opentelemetry-javaagent.jar.asc
180191
gh release create --target $GITHUB_REF_NAME \
181192
--title "Version $VERSION" \
182193
--notes-file /tmp/release-notes.txt \

CHANGELOG.md

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

33
## Unreleased
44

5+
## Version 2.21.0 (2025-10-17)
6+
7+
## ⚠️ Breaking Changes
8+
9+
- Hadoop JMX metrics have been renamed to align with semantic conventions.
10+
If you are using Hadoop JMX metrics, you will need to update your dashboards and alerts.
11+
([#14411](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14411))
12+
- Lettuce 5.1 instrumentation now aligns with other instrumentations and no longer sets the
13+
span status description.
14+
([#14886](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14886))
15+
16+
## 🚫 Deprecations
17+
18+
- The following Logback appender configuration properties have been renamed for clarity.
19+
The old property names have been deprecated and will be removed in a future release:
20+
- Java agent: `otel.instrumentation.logback-appender.experimental.capture-logstash-attributes`
21+
`otel.instrumentation.logback-appender.experimental.capture-logstash-marker-attributes`
22+
- Spring Boot starter`otel.instrumentation.logback-appender.experimental.capture-logstash-markers`
23+
`otel.instrumentation.logback-appender.experimental.capture-logstash-marker-attributes`
24+
- Logback appender configuration property: `captureLogstashAttributes``captureLogstashMarkerAttributes`
25+
- Logback appender API: `setCaptureLogstashAttributes()``setCaptureLogstashMarkerAttributes()`
26+
([#14959](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14959))
27+
28+
### 🌟 New javaagent instrumentation
29+
30+
- Add Helidon instrumentation
31+
([#13776](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13776))
32+
- Add NATS instrumentation
33+
([#13999](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13999))
34+
- OpenSearch Transport v3.0 Implementation
35+
([#14823](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14823))
36+
- Add Kafka Connect API instrumentation
37+
([#14478](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14478))
38+
39+
### 🌟 New library instrumentation
40+
41+
- Add Helidon Instrumentation
42+
([#13776](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13776))
43+
- Add NATS instrumentation
44+
([#13999](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13999))
45+
- [Failsafe](https://failsafe.dev/) 3.0 instrumentation introduced
46+
([#14057](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14057))
47+
48+
### 📈 Enhancements
49+
50+
- Add experimental sqlcommenter support for JDBC and R2DBC
51+
([#13714](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13714))
52+
- Align Hadoop JMX metrics with semantic conventions
53+
([#14411](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14411))
54+
- Introduce experimental API for operation attributes to be passed only to OperationListeners
55+
([#14590](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14590))
56+
- Add span logging support for declarative configuration
57+
([#14591](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14591))
58+
- Add span logging support for Spring Boot starter
59+
([#14594](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14594))
60+
- Support capturing event names in logback, log4j, and jboss-logmanager appenders
61+
([#14649](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14649))
62+
- Include contrib sampler in java agent, e.g. for filtering health check endpoints
63+
([#14677](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14677))
64+
- Collect RPC metrics in Apache Dubbo instrumentation
65+
([#14690](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14690))
66+
- Add experimental option to disable noisy `redis.encode` span events in Lettuce instrumentation
67+
([#14750](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14750))
68+
- Support ListIterator in Kafka consumer instrumentation for Spark Structured Streaming
69+
([#14757](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14757))
70+
- Exclude wrapper classes in JDBC instrumentation
71+
([#14760](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14760))
72+
- Support JDBC URL parsing for OceanBase, PolarDB, and Lindorm databases
73+
([#14790](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14790))
74+
- Support context propagation in Guava AsyncEventBus
75+
([#14791](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14791))
76+
- Make `db.statement` attribute available during sampling in Lettuce instrumentation
77+
([#14856](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14856))
78+
- Add `code.namespace` and `code.function` attributes to Vaadin controller spans
79+
([#14882](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14882))
80+
- Add `code.namespace` and `code.function` attributes to Grails controller spans
81+
([#14885](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14885))
82+
- Support Hibernate 7.2.0.CR1
83+
([#14921](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14921))
84+
- Support capturing Logstash StructuredArguments as log record attributes
85+
([#14959](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14959))
86+
- Add gRPC request/response size metrics
87+
([#14342](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14342))
88+
89+
### 🛠️ Bug fixes
90+
91+
- Fix datasource instrumentation to support connection pools like Druid
92+
([#14602](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14602))
93+
- Fix Java HTTP client instrumentation to properly propagate request cancellation
94+
([#14747](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14747))
95+
- Fix Reactor Netty HTTP client instrumentation to handle IllegalStateException
96+
([#14778](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14778))
97+
- Fix executor context propagation when a stateless lambda instance is passed multiple times
98+
([#14841](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14841))
99+
- Remove span status description from Lettuce 5.1 instrumentation
100+
([#14886](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14886))
101+
- Fix Spring Boot autoconfiguration ordering for micrometer bridge
102+
([#15011](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/15011))
103+
5104
## Version 2.20.1 (2025-09-22)
6105

7106
### 🛠️ Bug fixes

RELEASING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ and deadlocks.
6565
- Run the [Release workflow](https://github.com/open-telemetry/opentelemetry-java-instrumentation/actions/workflows/release.yml).
6666
- Press the "Run workflow" button, then select the release branch from the dropdown list,
6767
e.g. `release/v1.9.x`, and click the "Run workflow" button below that.
68-
- This workflow will publish the artifacts to maven central and will publish a GitHub release
69-
with release notes based on the change log and with the javaagent jar attached.
68+
- This workflow will:
69+
- Publish the artifacts to Maven Central
70+
- Generate [GitHub Artifact Attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations) for the Java agent jar and SBOM bundle
71+
- Publish a GitHub release with release notes, Java agent jar, and SBOM bundle
7072
- Review and merge the pull request that it creates for updating the apidiff baseline version
7173
to the newly released version (note that this pull request won't be made until after the release
7274
is available in maven central).
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.21.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.20.1.jar
1+
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.22.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.21.0.jar
22
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-api-2.21.0-SNAPSHOT.jar against opentelemetry-instrumentation-api-2.20.1.jar
1+
Comparing source compatibility of opentelemetry-instrumentation-api-2.22.0-SNAPSHOT.jar against opentelemetry-instrumentation-api-2.21.0.jar
22
No changes.

0 commit comments

Comments
 (0)