Class NewRelic::Agent::CrossAppMonitor
In: lib/new_relic/agent/cross_app_monitor.rb
Parent: InboundRequestMonitor

Methods

Constants

NEWRELIC_ID_HEADER = 'X-NewRelic-ID'
NEWRELIC_TXN_HEADER = 'X-NewRelic-Transaction'
NEWRELIC_APPDATA_HEADER = 'X-NewRelic-App-Data'
NEWRELIC_ID_HEADER_KEY = 'HTTP_X_NEWRELIC_ID'.freeze
NEWRELIC_TXN_HEADER_KEY = 'HTTP_X_NEWRELIC_TRANSACTION'.freeze
CONTENT_LENGTH_HEADER_KEY = 'HTTP_CONTENT_LENGTH'.freeze

Public Instance methods

Expected sequence of events:

  :before_call will save our cross application request id to the thread
  :after_call will write our response headers/metrics and clean up the thread

Expects an ID of format "12#345", and will only accept that!

[Validate]