Class: LogBrew::TraceparentSpanInput
- Inherits:
-
Struct
- Object
- Struct
- LogBrew::TraceparentSpanInput
- Defined in:
- lib/logbrew/traceparent.rb
Instance Attribute Summary collapse
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#span_id ⇒ Object
Returns the value of attribute span_id.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(name:, span_id:, status: "ok", duration_ms: nil, metadata: nil) ⇒ TraceparentSpanInput
constructor
A new instance of TraceparentSpanInput.
Constructor Details
#initialize(name:, span_id:, status: "ok", duration_ms: nil, metadata: nil) ⇒ TraceparentSpanInput
Returns a new instance of TraceparentSpanInput.
6 7 8 9 10 11 12 13 14 |
# File 'lib/logbrew/traceparent.rb', line 6 def initialize(name:, span_id:, status: "ok", duration_ms: nil, metadata: nil) super( name: name, span_id: span_id, status: status, duration_ms: duration_ms, metadata: ) end |
Instance Attribute Details
#duration_ms ⇒ Object
Returns the value of attribute duration_ms
5 6 7 |
# File 'lib/logbrew/traceparent.rb', line 5 def duration_ms @duration_ms end |
#metadata ⇒ Object
Returns the value of attribute metadata
5 6 7 |
# File 'lib/logbrew/traceparent.rb', line 5 def @metadata end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/logbrew/traceparent.rb', line 5 def name @name end |
#span_id ⇒ Object
Returns the value of attribute span_id
5 6 7 |
# File 'lib/logbrew/traceparent.rb', line 5 def span_id @span_id end |
#status ⇒ Object
Returns the value of attribute status
5 6 7 |
# File 'lib/logbrew/traceparent.rb', line 5 def status @status end |