586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
|
# File 'lib/new_relic/agent/transaction.rb', line 586
def assign_agent_attributes
default_destinations = AttributeFilter::DST_TRANSACTION_TRACER |
AttributeFilter::DST_TRANSACTION_EVENTS |
AttributeFilter::DST_ERROR_COLLECTOR
if http_response_code
add_agent_attribute(:'http.statusCode', http_response_code, default_destinations)
end
if response_content_length
add_agent_attribute(:'response.headers.contentLength', response_content_length.to_i, default_destinations)
end
if response_content_type
add_agent_attribute(:'response.headers.contentType', response_content_type, default_destinations)
end
@request_attributes&.assign_agent_attributes(self)
display_host = Agent.config[:'process_host.display_name']
unless display_host == NewRelic::Agent::Hostname.get
add_agent_attribute(:'host.displayName', display_host, default_destinations)
end
end
|