Skip to content

Commit

Permalink
RUBY-1829 Eliminate special case handling for guid on Error Events
Browse files Browse the repository at this point in the history
  • Loading branch information
mwear committed Mar 19, 2018
1 parent 1724647 commit 81b9f52
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/new_relic/agent/transaction_error_primitive.rb
Expand Up @@ -74,18 +74,12 @@ def append_cat payload, sample
sample[REFERRING_TRANSACTION_GUID_KEY] = payload[:referring_transaction_guid] if payload[:referring_transaction_guid]
end

OTHER_GUID_KEY = "nr.guid".freeze

def append_distributed_trace_intrinsics payload, sample
return unless Agent.config[:'distributed_tracing.enabled']
DistributedTracePayload::INTRINSIC_KEYS.each do |key|
value = payload[key]
sample[key] = value unless value.nil?
end
# guid has a different name for transaction events
if sample.key? OTHER_GUID_KEY
sample[GUID_KEY] = sample.delete OTHER_GUID_KEY
end
end
end
end
Expand Down

0 comments on commit 81b9f52

Please sign in to comment.