module NewRelic::Agent::Transaction::TraceContext::AccountHelpers

Public Instance Methods

trace_state_entry_key() click to toggle source
# File lib/new_relic/agent/transaction/trace_context.rb, line 14
def trace_state_entry_key
  @trace_state_entry_key ||= if Agent.config[:trusted_account_key]
    "#{Agent.config[:trusted_account_key]}@nr".freeze
  elsif Agent.config[:account_id]
    "#{Agent.config[:account_id]}@nr".freeze
  end
end