Rename otel.javaagent.config property
MODIFY
javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/config/ConfigInitializer.java
javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/config/ConfigInitializer.java
@@ -23,8 +23,8 @@ import org.slf4j.LoggerFactory;
public final class ConfigInitializer {
private static final Logger log = LoggerFactory.getLogger(ConfigInitializer.class);
- private static final String CONFIGURATION_FILE_PROPERTY = "otel.javaagent.config";
- private static final String CONFIGURATION_FILE_ENV_VAR = "OTEL_JAVAAGENT_CONFIG";
+ private static final String CONFIGURATION_FILE_PROPERTY = "otel.javaagent.configuration-file";
+ private static final String CONFIGURATION_FILE_ENV_VAR = "OTEL_JAVAAGENT_CONFIGURATION_FILE";
public static void initialize() {
Config.internalInitializeConfig(create(loadSpiConfiguration(), loadConfigurationFile()));

Rename otel.javaagent.config property (#2455)