Class: Langfuse::OtelSpanPatch
- Inherits:
-
Data
- Object
- Data
- Langfuse::OtelSpanPatch
- Defined in:
- lib/langfuse/otel_span_masking.rb
Overview
Attribute changes for one exported OpenTelemetry span.
Deletes run before sets, so a set wins when the same key is in both fields.
Instance Attribute Summary collapse
-
#delete_attributes ⇒ Array<String>
readonly
Attribute keys to remove.
-
#set_attributes ⇒ Hash
readonly
Attributes to add or replace.
Instance Method Summary collapse
Constructor Details
#initialize(set_attributes: {}, delete_attributes: []) ⇒ OtelSpanPatch
72 73 74 |
# File 'lib/langfuse/otel_span_masking.rb', line 72 def initialize(set_attributes: {}, delete_attributes: []) super end |
Instance Attribute Details
#delete_attributes ⇒ Array<String> (readonly)
Returns attribute keys to remove.
67 68 69 70 71 72 73 74 75 |
# File 'lib/langfuse/otel_span_masking.rb', line 67 OtelSpanPatch = Data.define(:set_attributes, :delete_attributes) do # @param set_attributes [Object] attributes to add or replace # @param delete_attributes [Object] attribute keys to remove # @return [OtelSpanPatch] # @raise [ArgumentError] if an unknown keyword is given def initialize(set_attributes: {}, delete_attributes: []) super end end |
#set_attributes ⇒ Hash (readonly)
Returns attributes to add or replace.
67 68 69 70 71 72 73 74 75 |
# File 'lib/langfuse/otel_span_masking.rb', line 67 OtelSpanPatch = Data.define(:set_attributes, :delete_attributes) do # @param set_attributes [Object] attributes to add or replace # @param delete_attributes [Object] attribute keys to remove # @return [OtelSpanPatch] # @raise [ArgumentError] if an unknown keyword is given def initialize(set_attributes: {}, delete_attributes: []) super end end |