Class: Sashiko::Traced::Options

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

Overview

Immutable trace configuration for a single method. Frozen Data value, Ractor-shareable — the overlay’s closure captures this record instead of an ad-hoc bag of locals.

‘static_attrs` is a frozen Hash holding the attributes that don’t vary per call (‘code.function`, `code.namespace`). Pre-baked at trace declaration time so build_attributes only allocates for the genuinely dynamic parts.

Instance Attribute Summary collapse

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



22
23
24
# File 'lib/sashiko/traced.rb', line 22

def attributes
  @attributes
end

#class_nameObject (readonly)

Returns the value of attribute class_name

Returns:

  • (Object)

    the current value of class_name



22
23
24
# File 'lib/sashiko/traced.rb', line 22

def class_name
  @class_name
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



22
23
24
# File 'lib/sashiko/traced.rb', line 22

def kind
  @kind
end

#method_nameObject (readonly)

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



22
23
24
# File 'lib/sashiko/traced.rb', line 22

def method_name
  @method_name
end

#record_argsObject (readonly)

Returns the value of attribute record_args

Returns:

  • (Object)

    the current value of record_args



22
23
24
# File 'lib/sashiko/traced.rb', line 22

def record_args
  @record_args
end

#span_nameObject (readonly)

Returns the value of attribute span_name

Returns:

  • (Object)

    the current value of span_name



22
23
24
# File 'lib/sashiko/traced.rb', line 22

def span_name
  @span_name
end

#static_attrsObject (readonly)

Returns the value of attribute static_attrs

Returns:

  • (Object)

    the current value of static_attrs



22
23
24
# File 'lib/sashiko/traced.rb', line 22

def static_attrs
  @static_attrs
end

#tracerObject (readonly)

Returns the value of attribute tracer

Returns:

  • (Object)

    the current value of tracer



22
23
24
# File 'lib/sashiko/traced.rb', line 22

def tracer
  @tracer
end