io.pyroscope.javaagent.impl.EnvConfigurationProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agent Show documentation
Show all versions of agent Show documentation
The Java profiling agent for Pyroscope.io. Based on async-profiler.
package io.pyroscope.javaagent.impl;
import io.pyroscope.javaagent.api.ConfigurationProvider;
import java.util.Map;
public class EnvConfigurationProvider implements ConfigurationProvider {
private final Map env;
public EnvConfigurationProvider() {
env = System.getenv();
}
@Override
public String get(String key) {
return env.get(key);
}
}