Class: Sashiko::Ractor::SpanEvent

Inherits:
Data
  • Object
show all
Defined in:
lib/sashiko/ractor.rb

Overview

Immutable record of a span that occurred inside a Ractor. Replayed on the main Ractor as an OTel span with these exact values.

Instance Attribute Summary collapse

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



24
25
26
# File 'lib/sashiko/ractor.rb', line 24

def attributes
  @attributes
end

#end_nsObject (readonly)

Returns the value of attribute end_ns

Returns:

  • (Object)

    the current value of end_ns



24
25
26
# File 'lib/sashiko/ractor.rb', line 24

def end_ns
  @end_ns
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



24
25
26
# File 'lib/sashiko/ractor.rb', line 24

def id
  @id
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



24
25
26
# File 'lib/sashiko/ractor.rb', line 24

def kind
  @kind
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



24
25
26
# File 'lib/sashiko/ractor.rb', line 24

def name
  @name
end

#parent_idObject (readonly)

Returns the value of attribute parent_id

Returns:

  • (Object)

    the current value of parent_id



24
25
26
# File 'lib/sashiko/ractor.rb', line 24

def parent_id
  @parent_id
end

#start_nsObject (readonly)

Returns the value of attribute start_ns

Returns:

  • (Object)

    the current value of start_ns



24
25
26
# File 'lib/sashiko/ractor.rb', line 24

def start_ns
  @start_ns
end

#status_errorObject (readonly)

Returns the value of attribute status_error

Returns:

  • (Object)

    the current value of status_error



24
25
26
# File 'lib/sashiko/ractor.rb', line 24

def status_error
  @status_error
end