Skip to content

which class contains the logic for handling environment variables #11832

Answered by laurit
mitht asked this question in Q&A
Discussion options

You must be logged in to vote

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. See

private Map<String, String> getDefaultProperties() {
Map<String, String> properties = new HashMap<>();
properties.put("otel.exporter.otlp.endpoint", "http://backend:8…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mitht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants