def initialize(path, env)
config = {}
@failures = []
begin
@file_path = validate_config_file_path(path)
return unless @file_path
::NewRelic::Agent.logger.info("Reading configuration from #{path} (#{Dir.pwd})")
raw_file = File.read(@file_path)
erb_file = process_erb(raw_file)
config = process_yaml(erb_file, env, config, @file_path)
rescue ScriptError, StandardError => e
log_failure("Failed to read or parse configuration file at #{path}", e)
end
substitute_transaction_threshold(config)
booleanify_values(config, 'agent_enabled', 'enabled')
super(config, true)
end