Class: LogBrew::TraceparentSpanInput

Inherits:
Struct
  • Object
show all
Defined in:
lib/logbrew/traceparent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_msObject

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



5
6
7
# File 'lib/logbrew/traceparent.rb', line 5

def duration_ms
  @duration_ms
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



5
6
7
# File 'lib/logbrew/traceparent.rb', line 5

def 
  @metadata
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/logbrew/traceparent.rb', line 5

def name
  @name
end

#span_idObject

Returns the value of attribute span_id

Returns:

  • (Object)

    the current value of span_id



5
6
7
# File 'lib/logbrew/traceparent.rb', line 5

def span_id
  @span_id
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



5
6
7
# File 'lib/logbrew/traceparent.rb', line 5

def status
  @status
end