Class: Atatus::Collector::Txn
- Defined in:
- lib/atatus/collector/base.rb
Instance Attribute Summary collapse
-
#background ⇒ Object
readonly
Returns the value of attribute background.
-
#spans ⇒ Object
readonly
Returns the value of attribute spans.
Attributes inherited from Layer
#count, #id, #kind, #max, #min, #pid, #total, #type
Instance Method Summary collapse
-
#initialize(type, kind, duration, background: false) ⇒ Txn
constructor
A new instance of Txn.
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
#background ⇒ Object (readonly)
Returns the value of attribute background.
21 22 23 |
# File 'lib/atatus/collector/base.rb', line 21 def background @background end |
#spans ⇒ Object (readonly)
Returns the value of attribute spans.
21 22 23 |
# File 'lib/atatus/collector/base.rb', line 21 def spans @spans end |