Class: Atatus::Collector::Txn

Inherits:
Layer
  • Object
show all
Defined in:
lib/atatus/collector/base.rb

Instance Attribute Summary collapse

Attributes inherited from Layer

#count, #id, #kind, #max, #min, #pid, #total, #type

Instance Method Summary collapse

Methods inherited from Layer

#aggregate!, span_kind, span_type

Constructor Details

#initialize(type, kind, duration, background: false) ⇒ Txn

Returns a new instance of Txn.



15
16
17
18
19
# File 'lib/atatus/collector/base.rb', line 15

def initialize(type, kind, duration, background: false)
  super(type, kind, duration)
  @spans = {}
  @background = background
end

Instance Attribute Details

#backgroundObject (readonly)

Returns the value of attribute background.



21
22
23
# File 'lib/atatus/collector/base.rb', line 21

def background
  @background
end

#spansObject (readonly)

Returns the value of attribute spans.



21
22
23
# File 'lib/atatus/collector/base.rb', line 21

def spans
  @spans
end