From 203437328d235ec2c3298512992aa51073f6df6e Mon Sep 17 00:00:00 2001 From: jiwen624 Date: Tue, 2 Nov 2021 15:24:26 -0700 Subject: [PATCH] config file path via env var --- .../extensions/AppOpticsTracerProviderConfigurer.java | 1 - .../opentelemetry/extensions/initialize/Initializer.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/src/main/java/com/appoptics/opentelemetry/extensions/AppOpticsTracerProviderConfigurer.java b/custom/src/main/java/com/appoptics/opentelemetry/extensions/AppOpticsTracerProviderConfigurer.java index c0f5fd01..c59444ac 100644 --- a/custom/src/main/java/com/appoptics/opentelemetry/extensions/AppOpticsTracerProviderConfigurer.java +++ b/custom/src/main/java/com/appoptics/opentelemetry/extensions/AppOpticsTracerProviderConfigurer.java @@ -12,7 +12,6 @@ @AutoService(SdkTracerProviderConfigurer.class) public class AppOpticsTracerProviderConfigurer implements SdkTracerProviderConfigurer { - //private Logger log = LoggerFactory.getLogger(AgentInstaller.class); private Logger logger = LoggerFactory.getLogger(getClass()); public AppOpticsTracerProviderConfigurer() { try { diff --git a/custom/src/main/java/com/appoptics/opentelemetry/extensions/initialize/Initializer.java b/custom/src/main/java/com/appoptics/opentelemetry/extensions/initialize/Initializer.java index 8524ce8d..259be162 100644 --- a/custom/src/main/java/com/appoptics/opentelemetry/extensions/initialize/Initializer.java +++ b/custom/src/main/java/com/appoptics/opentelemetry/extensions/initialize/Initializer.java @@ -65,6 +65,7 @@ public static Future initialize() throws InvalidConfigException { throw e; } finally { reportInit(exception); + serviceKey = (String)ConfigManager.getConfig(ConfigProperty.AGENT_SERVICE_KEY); logger.info("Successfully initialized AppOptics OpenTelemetry extensions with service key " + ServiceKeyUtils.maskServiceKey(serviceKey)); return future; }