184
185
186
187
188
189
190
191
192
193
194
|
# File 'lib/new_relic/agent/javascript_instrumentor.rb', line 184
def append_custom_attributes!(txn, atts)
custom_attributes = txn.attributes.custom_attributes_for(NewRelic::Agent::AttributeFilter::DST_BROWSER_MONITORING)
if custom_attributes.empty?
NewRelic::Agent.logger.debug("#{self.class}: No custom attributes found to append.")
return
end
NewRelic::Agent.logger.debug("#{self.class}: Appending the following custom attribute keys for browser " \
"monitoring: #{custom_attributes.keys}")
atts[ATTS_USER_SUBKEY] = custom_attributes
end
|