diff --git a/config-service-factory/src/main/java/org/hypertrace/config/service/ConfigServiceFactory.java b/config-service-factory/src/main/java/org/hypertrace/config/service/ConfigServiceFactory.java index 557dc3b8..6a7ca265 100644 --- a/config-service-factory/src/main/java/org/hypertrace/config/service/ConfigServiceFactory.java +++ b/config-service-factory/src/main/java/org/hypertrace/config/service/ConfigServiceFactory.java @@ -129,7 +129,8 @@ protected ConfigStore buildConfigStore(Datastore datastore) { private Datastore initDataStore( Config config, List configurationCounterConfig) { - Config docStoreConfig = config.getConfig(DOC_STORE_CONFIG_KEY); + Config genericConfig = config.getConfig(GENERIC_CONFIG_SERVICE_CONFIG); + Config docStoreConfig = genericConfig.getConfig(DOC_STORE_CONFIG_KEY); Datastore datastore = DatastoreProvider.getDatastore( TypesafeConfigDatastoreConfigExtractor.from(docStoreConfig, DATA_STORE_TYPE).extract());