Skip to content

Commit e4e7f0e

Browse files
tvernumSylvainJuge
andauthored
Update apm agent to 1.36.0 (#95366)
The APM agent version 1.33.0 fails to start on JDK 20, which prevents the APM integration to work as expected. As a consequence, the tracing does not work. When setting `ELASTIC_APM_LOG_LEVEL=debug` and `ELASTIC_APM_LOG_FILE=/tmp/log.txt`, the agent log shows that there is an issue with accessing `Unsafe` (sorry I don't have the exact stack trace). There was a few changes in APM agent regarding the security manager (SM) in recent versions, and updating the agent seems to make it work as expected. However, there is one known caveat so far (elastic/apm-agent-java#3074), keeping the agent with `debug` log level with `ELASTIC_APM_LOG_LEVEL=debug` makes it trigger another security exception when trying to establish connection with apm-server because the agent prints few details if a proxy is used or not (which is forbidden by default by the SM and isn't yet wrapped in a privileged call. Backport of: #94716 Co-authored-by: SylvainJuge <[email protected]>
1 parent 495dcdc commit e4e7f0e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

docs/changelog/95366.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 95366
2+
summary: Update apm agent to 1.36.0
3+
area: Infra/Core
4+
type: upgrade
5+
issues: []

gradle/verification-metadata.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
<sha256 value="3366d2c88fb576e486d830f521184e8f1839f8c15dcd2151a3f6e1f62b0b37a0" origin="Generated by Gradle"/>
6565
</artifact>
6666
</component>
67-
<component group="co.elastic.apm" name="elastic-apm-agent" version="1.33.0">
68-
<artifact name="elastic-apm-agent-1.33.0.jar">
69-
<sha256 value="86822b39e3d2d51b43d223be133a44ec991f7051da018c65dcfcb49a9a4a05de" origin="Generated by Gradle"/>
70-
</artifact>
67+
<component group="co.elastic.apm" name="elastic-apm-agent" version="1.36.0">
68+
<artifact name="elastic-apm-agent-1.36.0.jar">
69+
<sha256 value="3be90268557494f88fe252caf6358d4107aa9349852b8704b1e0ff4831cb74d6" origin="Generated by Gradle"/>
70+
</artifact>
7171
</component>
7272
<component group="co.elastic.logging" name="ecs-logging-core" version="1.2.0">
7373
<artifact name="ecs-logging-core-1.2.0.jar">

modules/apm/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies {
1818
implementation "io.opentelemetry:opentelemetry-api:${otelVersion}"
1919
implementation "io.opentelemetry:opentelemetry-context:${otelVersion}"
2020
implementation "io.opentelemetry:opentelemetry-semconv:${otelVersion}-alpha"
21-
runtimeOnly "co.elastic.apm:elastic-apm-agent:1.33.0"
21+
runtimeOnly "co.elastic.apm:elastic-apm-agent:1.36.0"
2222
}
2323

2424
tasks.named("dependencyLicenses").configure {

0 commit comments

Comments
 (0)