Module: NewRelic::Agent::Transaction::TraceContext::AccountHelpers

Extended by:
AccountHelpers
Included in:
AccountHelpers
Defined in:
lib/new_relic/agent/transaction/trace_context.rb

Instance Method Summary collapse

Instance Method Details

#trace_state_entry_keyObject



14
15
16
17
18
19
20
# 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