lib/instana/agent.rb in instana-1.12.0 vs lib/instana/agent.rb in instana-1.13.0

- old
+ new

@@ -23,10 +23,11 @@ attr_accessor :agent_uuid attr_accessor :process attr_accessor :collect_thread attr_accessor :thread_spawn_lock attr_accessor :extra_headers + attr_reader :secret_values attr_accessor :testmode LOCALHOST = '127.0.0.1'.freeze MIME_JSON = 'application/json'.freeze @@ -81,10 +82,14 @@ # This will hold info on the discovered agent host @discovered = nil # The agent may pass down custom headers for this sensor to capture @extra_headers = nil + + # The values considered sensitive and removed from http query parameters + # and database connection strings + @secret_values = nil end # Spawns the background thread and calls start. This method is separated # out for those who wish to control which thread the background agent will # run in. @@ -276,9 +281,10 @@ if response && (response.code.to_i == 200) data = Oj.load(response.body, OJ_OPTIONS) @process[:report_pid] = data['pid'] @agent_uuid = data['agentUuid'] + @secret_values = data['secrets'] if data.key?('extraHeaders') @extra_headers = data['extraHeaders'] end true