Class: Sqreen::Kit::Signals::Location

Inherits:
Object
  • Object
show all
Includes:
DtoHelper
Defined in:
lib/sqreen/kit/signals/signal_attributes.rb

Constant Summary

Constants included from DtoHelper

DtoHelper::DO_NOT_CONVERT_TYPES, DtoHelper::RFC_3339_FMT

Instance Attribute Summary collapse

Method Summary

Methods included from DtoHelper

#append_to_h_filter, #compact_hash, included, #initialize, #to_h, #to_json

Instance Attribute Details

#datadog_span_idInteger

Datadog span id

Returns:

  • (Integer)


69
70
71
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 69

def datadog_span_id
  @datadog_span_id
end

#datadog_trace_idInteger

Datadog trace id

Returns:

  • (Integer)


65
66
67
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 65

def datadog_trace_id
  @datadog_trace_id
end

#exception=(value) ⇒ Object (writeonly)

Parameters:

  • e (Exception)


61
62
63
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 61

def exception=(value)
  @exception = value
end

#stack_traceObject



71
72
73
74
75
76
77
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 71

def stack_trace
  if @exception
    Sqreen::Kit::StackTrace.parse(@exception)
  elsif @stack_trace
    Sqreen::Kit::StackTrace.parse_backtrace(@stack_trace)
  end
end