Class: Sashiko::Traced::Options
- Inherits:
-
Data
- Object
- Data
- Sashiko::Traced::Options
- 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
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#record_args ⇒ Object
readonly
Returns the value of attribute record_args.
-
#span_name ⇒ Object
readonly
Returns the value of attribute span_name.
-
#static_attrs ⇒ Object
readonly
Returns the value of attribute static_attrs.
-
#tracer ⇒ Object
readonly
Returns the value of attribute tracer.
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
22 23 24 |
# File 'lib/sashiko/traced.rb', line 22 def attributes @attributes end |
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name
22 23 24 |
# File 'lib/sashiko/traced.rb', line 22 def class_name @class_name end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
22 23 24 |
# File 'lib/sashiko/traced.rb', line 22 def kind @kind end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name
22 23 24 |
# File 'lib/sashiko/traced.rb', line 22 def method_name @method_name end |
#record_args ⇒ Object (readonly)
Returns the value of attribute record_args
22 23 24 |
# File 'lib/sashiko/traced.rb', line 22 def record_args @record_args end |
#span_name ⇒ Object (readonly)
Returns the value of attribute span_name
22 23 24 |
# File 'lib/sashiko/traced.rb', line 22 def span_name @span_name end |
#static_attrs ⇒ Object (readonly)
Returns the value of attribute static_attrs
22 23 24 |
# File 'lib/sashiko/traced.rb', line 22 def static_attrs @static_attrs end |
#tracer ⇒ Object (readonly)
Returns the value of attribute tracer
22 23 24 |
# File 'lib/sashiko/traced.rb', line 22 def tracer @tracer end |