-
Beta Was this translation helpful? Give feedback.
Answered by
laurit
Jul 22, 2024
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mitht
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RuntimeMXBean.getSystemProperties()
copies the system properties to a new map, modifying it won't help at all. The conventional way for programmatically setting a system property would be to use https://docs.oracle.com/javase/8/docs/api/java/lang/System.html#setProperty-java.lang.String-java.lang.String- Though you shouldn't use that either. Seeopentelemetry-java-instrumentation/examples/extension/src/main/java/com/example/javaagent/DemoAutoConfigurationCustomizerProvider.java
Lines 49 to 56 in b1e4c32