Skip to content

Commit 74bbfe2

Browse files
authored
Merge branch 'open-telemetry:main' into e5l/ktor-3.0.0
2 parents 8e0154b + 1c3a374 commit 74bbfe2

File tree

182 files changed

+6456
-4291
lines changed

Some content is hidden

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

182 files changed

+6456
-4291
lines changed

.github/renovate.json5

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@
149149
"matchUpdateTypes": ["major"],
150150
"enabled": false
151151
},
152+
{
153+
// intentionally pinning specifically to guice 5 in the play smoke test
154+
// until we are able to test against the latest version of play
155+
"matchFileNames": ["smoke-tests/images/play/build.gradle.kts"],
156+
"matchPackagePrefixes": ["com.google.inject:", "com.google.inject.extensions:"],
157+
"matchUpdateTypes": ["major"],
158+
"enabled": false
159+
},
152160
{
153161
// intentionally aligning both netty 4.0 and 4.1 version in this convention
154162
"matchFileNames": ["conventions/src/main/kotlin/otel.java-conventions.gradle.kts"],

.github/workflows/build-common.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ jobs:
9494
else
9595
echo "Licenses are not up-to-date, please run './gradlew generateLicenseReport --no-build-cache' locally and commit."
9696
echo
97-
echo "$(git diff --cached --stat licenses)"
97+
git diff --cached --stat licenses
9898
echo
99-
echo "$(git diff --cached licenses)"
99+
git diff --cached licenses
100100
exit 1
101101
fi
102102
@@ -165,8 +165,8 @@ jobs:
165165
echo "No diff detected."
166166
else
167167
echo "Diff detected - did you run './gradlew jApiCmp'?"
168-
echo $(git diff --cached --name-only)
169-
echo $(git diff --cached)
168+
git diff --cached --name-only
169+
git diff --cached
170170
exit 1
171171
fi
172172
@@ -209,8 +209,6 @@ jobs:
209209
- 3
210210
exclude:
211211
- vm: ${{ inputs.skip-openj9-tests && 'openj9' || '' }}
212-
- test-java-version: 23
213-
vm: openj9
214212
fail-fast: false
215213
steps:
216214
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

.github/workflows/codeql-daily.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
java-version-file: .java-version
3131

3232
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
33+
uses: github/codeql-action/init@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13
3434
with:
3535
languages: java
3636
# using "latest" helps to keep up with the latest Kotlin support
@@ -45,7 +45,7 @@ jobs:
4545
run: ./gradlew assemble -x javadoc --no-build-cache --no-daemon
4646

4747
- name: Perform CodeQL analysis
48-
uses: github/codeql-action/analyze@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
48+
uses: github/codeql-action/analyze@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13
4949

5050
workflow-notification:
5151
needs:

.github/workflows/pr-smoke-test-play-images.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,3 @@ jobs:
1515
with:
1616
project: ":smoke-tests:images:play"
1717
cache-read-only: true
18-
# Play doesn't support Java 16+ yet
19-
# https://github.com/playframework/playframework/pull/10819
20-
skip-java-17: true
21-
skip-java-21: true

.github/workflows/publish-smoke-test-play-images.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ jobs:
1515
with:
1616
project: ":smoke-tests:images:play"
1717
publish: true
18-
# Play doesn't support Java 16+ yet
19-
# https://github.com/playframework/playframework/pull/10819
20-
skip-java-17: true
21-
skip-java-21: true
2218

2319
workflow-notification:
2420
needs:

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- required-jobs
2222
outputs:
2323
version: ${{ steps.create-github-release.outputs.version }}
24+
prior-version: ${{ steps.create-github-release.outputs.prior-version }}
2425
steps:
2526
- run: |
2627
if [[ $GITHUB_REF_NAME != release/* ]]; then
@@ -177,6 +178,7 @@ jobs:
177178
opentelemetry-java-instrumentation-SBOM.zip
178179
179180
echo "version=$VERSION" >> $GITHUB_OUTPUT
181+
echo "prior-version=$PRIOR_VERSION" >> $GITHUB_OUTPUT
180182
181183
merge-change-log-to-main:
182184
runs-on: ubuntu-latest
@@ -233,3 +235,53 @@ jobs:
233235
gh pr create --title "$message" \
234236
--body "$body" \
235237
--base main
238+
239+
update-apidiff-baseline-to-released-version:
240+
runs-on: ubuntu-latest
241+
needs:
242+
- release
243+
steps:
244+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
245+
with:
246+
ref: main
247+
248+
- name: Use CLA approved github bot
249+
run: .github/scripts/use-cla-approved-github-bot.sh
250+
251+
- name: Wait for release to be available in maven central
252+
run: |
253+
until curl --silent \
254+
--show-error \
255+
--output /dev/null \
256+
--head \
257+
--fail \
258+
https://repo1.maven.org/maven2/io/opentelemetry/javaagent/opentelemetry-javaagent/$VERSION/opentelemetry-javaagent-$VERSION.jar
259+
do
260+
sleep 60
261+
done
262+
263+
- name: Update apidiff baseline
264+
env:
265+
VERSION: ${{ needs.release.outputs.version }}
266+
PRIOR_VERSION: ${{ needs.release.outputs.prior-version }}
267+
run: |
268+
./gradlew japicmp -PapiBaseVersion=$PRIOR_VERSION -PapiNewVersion=$VERSION
269+
./gradlew --refresh-dependencies japicmp
270+
271+
- name: Create pull request against main
272+
env:
273+
VERSION: ${{ needs.release.outputs.version }}
274+
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
275+
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
276+
run: |
277+
message="Update apidiff baseline to released version $VERSION"
278+
body="Update apidiff baseline to released version \`$version\`."
279+
branch="opentelemetrybot/update-apidiff-baseline-to-released-version-${VERSION}"
280+
281+
git checkout -b $branch
282+
git add docs/apidiffs
283+
git commit -m "$message"
284+
git push --set-upstream origin $branch
285+
gh pr create --title "$message" \
286+
--body "$body" \
287+
--base main

.github/workflows/reusable-native-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
1919
- id: read-java
2020
run: echo "version=$(cat .java-version)" >> "$GITHUB_OUTPUT"
21-
- uses: graalvm/setup-graalvm@22cc13fe88ef133134b3798e128fb208df55e1f5 # v1.2.3.1
21+
- uses: graalvm/setup-graalvm@6f327093bb6a42fe5eac053d21b168c46aa46f22 # v1.2.4.1
2222
with:
2323
version: "latest"
2424
java-version: "${{ steps.read-java.outputs.version }}"

.github/workflows/reusable-smoke-test-images.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,7 @@ jobs:
7979
- name: Build Java 21 Docker image
8080
if: "!inputs.skip-java-21"
8181
run: ./gradlew ${{ inputs.project }}:${{ inputs.publish && 'jib' || 'jibDockerBuild' }} -Ptag=${{ env.TAG }} -PtargetJDK=21 -Djib.httpTimeout=120000 -Djib.console=plain
82+
83+
- name: Build Java 23 Docker image
84+
if: "!inputs.skip-java-23"
85+
run: ./gradlew ${{ inputs.project }}:${{ inputs.publish && 'jib' || 'jibDockerBuild' }} -Ptag=${{ env.TAG }} -PtargetJDK=23 -Djib.httpTimeout=120000 -Djib.console=plain

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ jobs:
6464

6565
# Upload the results to GitHub's code scanning dashboard.
6666
- name: "Upload to code-scanning"
67-
uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
67+
uses: github/codeql-action/upload-sarif@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13
6868
with:
6969
sarif_file: results.sarif

CHANGELOG.md

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

33
## Unreleased
44

5+
## Version 2.9.0 (2024-10-17)
6+
7+
### 📈 Enhancements
8+
9+
- Allow JMX Insight reuse for remote connections
10+
([#12178](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12178))
11+
- Add opentelemetry-semconv-incubating to bom-alpha
12+
([#12266](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12266))
13+
- Bridge more incubating api
14+
([#12230](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12230))
15+
- Jetty HttpClient 12: propagate context to all response listeners
16+
([#12326](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12326))
17+
- Add Pekko Scheduler context propagation
18+
([#12359](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12359))
19+
- Add Akka Scheduler context propagation
20+
([#12373](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12373))
21+
- Add instrumentation for spring-cloud-aws SqsListener annotation
22+
([#12314](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12314))
23+
- Align SpringConfigProperties with DefaultConfigProperties
24+
([#12398](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12398))
25+
- Clear context propagation virtual field
26+
([#12397](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12397))
27+
- The opt-in experimental attribute `aws.requestId` was renamed to `aws.request_id`
28+
(to match the semantic conventions) and it is now emitted by default.
29+
([#12352](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12352))
30+
- Ability to set Logback argument capture with a property in Spring Boot Starter
31+
([#12442](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12442))
32+
- Support experimental declarative configuration
33+
([#12265](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12265))
34+
- Spring Boot Starter: Add auto configuration for spring scheduling instrumentation
35+
([#12438](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12438))
36+
- Extract `APIGatewayProxyRequestEvent` headers for context propagation in AWS Lambda instrumentation
37+
([#12440](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12440))
38+
- Support JMX state metrics
39+
([#12369](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12369))
40+
- Allow method instrumentation module to trace methods in boot loader
41+
([#12454](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12454))
42+
43+
### 🛠️ Bug fixes
44+
45+
- Fix gc duration metric in runtime-telemetry-java17
46+
([#12256](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12256))
47+
- Fix vert.x route containing duplicate segments when RoutingContext.next is used
48+
([#12260](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12260))
49+
- Fixes for latest mongo version
50+
([#12331](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12331))
51+
- Fix context propagation for ratpack request body stream
52+
([#12330](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12330))
53+
- Fix lambda instrumentation to forceFlush logs also
54+
([#12341](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12341))
55+
- Can't add custom AttributeExtractor to Apache HttpClient 5 library instrumentation
56+
([#12394](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12394))
57+
- Disable logback capture arguments by default
58+
([#12445](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12445))
59+
- Add support for missing list properties in spring starter
60+
([#12434](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12434))
61+
562
## Version 2.8.0 (2024-09-13)
663

764
### Migration notes

0 commit comments

Comments
 (0)