Method: NewRelic::Agent::JavaScriptInstrumentor#add_attributes
- Defined in:
- lib/new_relic/agent/javascript_instrumentor.rb
#add_attributes(data, txn) ⇒ Object
171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/new_relic/agent/javascript_instrumentor.rb', line 171 def add_attributes(data, txn) return unless txn atts = {} append_custom_attributes!(txn, atts) append_agent_attributes!(txn, atts) unless atts.empty? json = ::JSON.dump(atts) data[ATTS_KEY] = obfuscator.obfuscate(json) end end |