-
Notifications
You must be signed in to change notification settings - Fork 333
Upgrade jmxfetch dependency to 0.52.0 #11127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f841564
2340283
e48df9e
ca07bcc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package datadog.trace.agent.jmxfetch; | ||
|
|
||
| import java.io.InputStream; | ||
|
|
||
| /** | ||
| * We map the legacy {@code org.yaml.snakeyaml.Yaml} class to this substitute class at build time to | ||
| * keep the GraalVM native-image builder happy. JmxFetch has a solitary reference to the class, but | ||
| * it's never called because JMXFetch discovers the embedded snakeyaml-engine library and uses that. | ||
| */ | ||
| public class LegacyYaml { | ||
| public <T> T load(InputStream in) { | ||
| throw new UnsupportedOperationException(); | ||
| } | ||
|
|
||
| public String dump(Object data) { | ||
| throw new UnsupportedOperationException(); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,8 +65,6 @@ public static void onEnter(@Advice.Argument(value = 0, readOnly = false) String[ | |
| + "com.datadog.profiling.controller.openjdk.events.QueueTimeEvent:build_time," | ||
| + "com.datadog.profiling.controller.openjdk.events.TimelineEvent:build_time," | ||
| + "com.datadog.profiling.controller.openjdk.events.SmapEntryEvent:build_time," | ||
| + "com.datadog.profiling.controller.openjdk.events.SmapEntryFactory$SmapParseErrorEvent:build_time," | ||
| + "com.datadog.profiling.ddprof.JavaProfilerLoader:run_time," | ||
| + "com.datadoghq.profiler.ThreadContext:run_time," | ||
| + "com.datadoghq.profiler.BufferWriter:run_time," | ||
| + "com.datadoghq.profiler.BufferWriter8:run_time," | ||
|
|
@@ -133,11 +131,13 @@ public static void onEnter(@Advice.Argument(value = 0, readOnly = false) String[ | |
| + "datadog.trace.bootstrap.benchmark.StaticEventLogger:build_time," | ||
| + "datadog.trace.bootstrap.blocking.BlockingExceptionHandler:build_time," | ||
| + "datadog.trace.bootstrap.InstrumentationErrors:build_time," | ||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.AsyncResultExtensions$CompletableAsyncResultExtension:build_time," | ||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.AsyncResultExtensions$1:build_time," | ||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.AsyncResultExtensions:build_time," | ||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.ConcurrentState:build_time," | ||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.ExcludeFilter:build_time," | ||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.ExcludeFilter$ExcludeType:build_time," | ||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.QueueTimeHelper:build_time," | ||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.QueueTimerHelper:build_time," | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder how you knew these had to be updated?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While testing this locally I ran the smoke tests on a variety of GraalVM distros - one obscure version (23) flagged the missing wrapper class - I then noticed that a couple of other entries were stale and referred to non-existent classes and could be dropped :) So this change doesn't affect supported versions, it's just clean-up I found during additional local testing |
||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.QueueTimerHelper$RateLimiterHolder:run_time," | ||
| + "datadog.trace.bootstrap.instrumentation.java.concurrent.TPEHelper:build_time," | ||
| + "datadog.trace.bootstrap.instrumentation.jfr.exceptions.ExceptionCountEvent:build_time," | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💭 thought: I guess it can only go bigger over time 😓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do have a plan to trim back a few things :)