Skip to content

Commit c601c24

Browse files
committed
last
1 parent ae40662 commit c601c24

5 files changed

Lines changed: 49 additions & 45 deletions

File tree

.github/scripts/draft-change-log-entries.sh

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,23 @@ else
2323
range="v$major.$((minor - 1)).0..HEAD"
2424
fi
2525

26-
sdk_version=$(grep -Po "val otelSdkVersion = \"\K[0-9]+\.[0-9]+\.[0-9]+" dependencyManagement/build.gradle.kts)
27-
28-
cat << EOF
29-
# Changelog
30-
31-
## Unreleased
32-
33-
This release targets the OpenTelemetry SDK $sdk_version.
34-
35-
Note that many artifacts have the \`-alpha\` suffix attached to their version
36-
number, reflecting that they will continue to have breaking changes.
37-
Please see the [VERSIONING.md](VERSIONING.md#opentelemetry-java-instrumentation-versioning)
38-
for more details.
39-
40-
EOF
26+
echo "# Changelog"
27+
echo
28+
echo "## Unreleased"
29+
echo
4130

4231
"$(dirname "$0")/extract-labeled-prs.sh" "$range"
4332

44-
cat << 'EOF'
45-
### 🌟 New javaagent instrumentation
46-
47-
### 🌟 New library instrumentation
48-
49-
### 📈 Enhancements
50-
51-
### 🛠️ Bug fixes
52-
53-
### 🧰 Tooling
54-
55-
EOF
33+
echo "### 🌟 New javaagent instrumentation"
34+
echo
35+
echo "### 🌟 New library instrumentation"
36+
echo
37+
echo "### 📈 Enhancements"
38+
echo
39+
echo "### 🛠️ Bug fixes"
40+
echo
41+
echo "### 🧰 Tooling"
42+
echo
5643

5744
# Group commits by file type and @Deprecated detection
5845
declare -A src_main_commits
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash -e
2+
3+
# Emits the CHANGELOG.md preamble that appears under each release heading.
4+
5+
sdk_version=$(grep -Po "val otelSdkVersion = \"\K[0-9]+\.[0-9]+\.[0-9]+" dependencyManagement/build.gradle.kts)
6+
7+
text=$(cat << EOF
8+
This release targets the OpenTelemetry SDK $sdk_version.
9+
10+
Note that many artifacts have the \`-alpha\` suffix attached to their version
11+
number, reflecting that they will continue to have breaking changes. Please see
12+
[VERSIONING.md](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/VERSIONING.md#opentelemetry-java-instrumentation-versioning)
13+
for more details.
14+
EOF
15+
)
16+
17+
# Replace real newlines with the literal two-character sequence \n so the output
18+
# can be interpolated directly into the replacement side of a `sed -E` command.
19+
printf '%s' "${text//$'\n'/\\n}"

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
- name: Update the change log with the approximate release date
4747
run: |
4848
date=$(date "+%Y-%m-%d")
49-
sed -Ei "s/^## Unreleased$/## Version $VERSION ($date)/" CHANGELOG.md
49+
preamble=$(.github/scripts/get-changelog-preamble.sh)
50+
sed -Ei "s|^## Unreleased$|## Version $VERSION ($date)\n\n$preamble|" CHANGELOG.md
5051
5152
- name: Use CLA approved bot
5253
run: .github/scripts/use-cla-approved-bot.sh

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ jobs:
6262
- name: Update the change log with the approximate release date
6363
run: |
6464
date=$(date "+%Y-%m-%d")
65-
sed -Ei "s/^## Unreleased$/## Version $VERSION ($date)/" CHANGELOG.md
65+
preamble=$(.github/scripts/get-changelog-preamble.sh)
66+
sed -Ei "s|^## Unreleased$|## Version $VERSION ($date)\n\n$preamble|" CHANGELOG.md
6667
6768
- name: Use CLA approved bot
6869
run: .github/scripts/use-cla-approved-bot.sh
@@ -119,7 +120,8 @@ jobs:
119120
run: |
120121
# the actual release date on main will be updated at the end of the release workflow
121122
date=$(date "+%Y-%m-%d")
122-
sed -Ei "s/^## Unreleased$/## Unreleased\n\n## Version $VERSION ($date)/" CHANGELOG.md
123+
preamble=$(.github/scripts/get-changelog-preamble.sh)
124+
sed -Ei "s|^## Unreleased$|## Unreleased\n\n## Version $VERSION ($date)\n\n$preamble|" CHANGELOG.md
123125
124126
- name: Use CLA approved bot
125127
run: .github/scripts/use-cla-approved-bot.sh

CHANGELOG.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

33
## Unreleased
44

5-
This release targets the OpenTelemetry SDK 1.61.0.
6-
7-
Note that many artifacts have the `-alpha` suffix attached to their version
8-
number, reflecting that they will continue to have breaking changes.
9-
Please see the [VERSIONING.md](VERSIONING.md#opentelemetry-java-instrumentation-versioning)
10-
for more details.
11-
125
### ⚠️ Breaking changes to non-stable APIs
136

147
- Make `AbstractKtorServerTelemetryBuilder.isOpenTelemetryInitialized()` protected (previously
@@ -30,7 +23,7 @@ for more details.
3023
- Deprecated GraphQL builder methods `setSanitizeQuery()` and `setAddOperationNameToSpanName()`, and
3124
deprecated config key `otel.instrumentation.graphql.add-operation-name-to-span-name.enabled` in
3225
favor of `setQuerySanitizationEnabled()`, `setOperationNameInSpanNameEnabled()`, and
33-
`otel.instrumentation.graphql.operation-name-in-span-name.enabled`
26+
`otel.instrumentation.graphql.operation-name-in-span-name.enabled`.
3427
([#17093](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17093))
3528
- Deprecate `Experimental.setEnableSqlCommenter()` in JDBC and R2DBC instrumentation in favor of
3629
`Experimental.setSqlCommenterEnabled()`.
@@ -44,7 +37,7 @@ for more details.
4437
- Deprecated the declarative config name `statement_sanitizer` in favor of `query_sanitization`, and
4538
the declarative config group `common.database` in favor of `common.db`.
4639
([#17116](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17116))
47-
- Deprecated the GraphQL declarative config name `query_sanitizer` in favor of `query_sanitization`
40+
- Deprecated the GraphQL declarative config name `query_sanitizer` in favor of `query_sanitization`.
4841
([#17455](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17455))
4942
- Deprecated the DB query sanitization system property names
5043
`otel.instrumentation.common.db-statement-sanitizer.enabled`,
@@ -55,7 +48,7 @@ for more details.
5548
`otel.instrumentation.common.experimental.db-sqlcommenter.enabled` in favor of
5649
`otel.instrumentation.common.db.experimental.sqlcommenter.enabled`, and deprecated
5750
`otel.instrumentation.graphql.query-sanitizer.enabled` in favor of
58-
`otel.instrumentation.graphql.query-sanitization.enabled`
51+
`otel.instrumentation.graphql.query-sanitization.enabled`.
5952
([#17464](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17464))
6053
- Deprecate `InstrumentationModule.isIndyModule()`; indy mode is now determined by the agent
6154
distribution configuration instead of per-module overrides.
@@ -101,14 +94,13 @@ for more details.
10194
- Preserve original casing of servlet request parameter names in attribute keys when
10295
`otel.instrumentation.common.v3-preview` is enabled.
10396
([#17822](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17822))
104-
- Fix warning printed on JDK 26 about changing the value of a final field with reflection.
97+
- Replace reflective mutation of Byte Buddy's `AgentBuilder.Default.transformations` with a
98+
`ClassFileTransformer` hook, avoiding a JDK 26 JEP 500 warning about writing to a final field
99+
via reflection.
105100
([#17824](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17824))
106101
- Add javaagent bridging support for OpenTelemetry API 1.61 stable methods including
107-
`Tracer.isEnabled()`, metric instrument `isEnabled()`, and `Logger.setBody(Body)`
102+
`Tracer.isEnabled()`, metric instrument `isEnabled()`, and `Logger.setBody(Body)`.
108103
([#17849](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17849))
109-
- Align RMI context propagation limits with Tomcat defaults, reducing max entries from 1000 to 100
110-
and adding an 8 KB total size limit to prevent excessively large payloads.
111-
([#17870](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17870))
112104

113105
### 🛠️ Bug fixes
114106

@@ -188,6 +180,9 @@ for more details.
188180
- Fix `ClassNotFoundException` in `MicrometerBridgeAutoConfiguration` when Spring Boot Actuator
189181
metrics module is not on the classpath in Spring Boot 4.
190182
([#17723](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17723))
183+
- Align RMI context propagation limits with Tomcat defaults, reducing max entries from 1000 to 100
184+
and adding an 8 KB total size limit to prevent excessively large payloads.
185+
([#17870](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/17870))
191186
- Fix runtime-telemetry unconditionally enabling experimental JFR-based metrics when
192187
`otel.instrumentation.runtime-telemetry.emit-experimental-metrics=true`, which could impose
193188
unwanted JFR recording overhead on users who only wanted the JMX-based experimental metrics.

0 commit comments

Comments
 (0)