Method: NewRelic::Agent::SpanEventPrimitive#error_attributes
- Defined in:
- lib/new_relic/agent/span_event_primitive.rb
permalink #error_attributes(segment) ⇒ Object
Builds a Hash of error attributes as well as the Span ID when an error is present. Otherwise, returns nil when no error present.
59 60 61 62 63 64 |
# File 'lib/new_relic/agent/span_event_primitive.rb', line 59 def error_attributes(segment) return if Agent.config[:high_security] || !segment.noticed_error segment.noticed_error.build_error_attributes segment.noticed_error_attributes end |