Method: NewRelic::Agent::Utilization::Vendor.processed_headers
- Defined in:
- lib/new_relic/agent/utilization/vendor.rb
.processed_headers ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/new_relic/agent/utilization/vendor.rb', line 32 def processed_headers return unless @headers @headers.each_with_object({}) do |(key, value), processed_hash| # Header lambdas are expected to return string values. If nil comes back, replace it with :error # to signify that the call failed. processed_hash[key] = value.class.eql?(Proc) ? value.call || :error : value end end |