Class: Langfuse::OtelSpanData
- Inherits:
-
Data
- Object
- Data
- Langfuse::OtelSpanData
- Defined in:
- lib/langfuse/otel_span_masking.rb
Overview
Read-only OpenTelemetry span snapshot passed to mask_otel_spans.
The hook can inspect every field but can only patch attributes.
Instance Attribute Summary collapse
-
#attributes ⇒ Hash
readonly
Frozen span attributes.
-
#instrumentation_scope_name ⇒ String?
readonly
Instrumentation scope name.
-
#instrumentation_scope_version ⇒ String?
readonly
Instrumentation scope version.
-
#name ⇒ String
readonly
Span name.
-
#parent_span_id ⇒ String?
readonly
16-character lowercase hexadecimal parent span ID.
-
#resource_attributes ⇒ Hash
readonly
Frozen resource attributes.
-
#span_id ⇒ String
readonly
16-character lowercase hexadecimal span ID.
-
#trace_id ⇒ String
readonly
32-character lowercase hexadecimal trace ID.
Instance Attribute Details
#attributes ⇒ Hash (readonly)
Returns frozen span attributes.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/langfuse/otel_span_masking.rb', line 42 OtelSpanData = Data.define( :trace_id, :span_id, :parent_span_id, :name, :instrumentation_scope_name, :instrumentation_scope_version, :attributes, :resource_attributes ) |
#instrumentation_scope_name ⇒ String? (readonly)
Returns instrumentation scope name.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/langfuse/otel_span_masking.rb', line 42 OtelSpanData = Data.define( :trace_id, :span_id, :parent_span_id, :name, :instrumentation_scope_name, :instrumentation_scope_version, :attributes, :resource_attributes ) |
#instrumentation_scope_version ⇒ String? (readonly)
Returns instrumentation scope version.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/langfuse/otel_span_masking.rb', line 42 OtelSpanData = Data.define( :trace_id, :span_id, :parent_span_id, :name, :instrumentation_scope_name, :instrumentation_scope_version, :attributes, :resource_attributes ) |
#name ⇒ String (readonly)
Returns span name.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/langfuse/otel_span_masking.rb', line 42 OtelSpanData = Data.define( :trace_id, :span_id, :parent_span_id, :name, :instrumentation_scope_name, :instrumentation_scope_version, :attributes, :resource_attributes ) |
#parent_span_id ⇒ String? (readonly)
Returns 16-character lowercase hexadecimal parent span ID.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/langfuse/otel_span_masking.rb', line 42 OtelSpanData = Data.define( :trace_id, :span_id, :parent_span_id, :name, :instrumentation_scope_name, :instrumentation_scope_version, :attributes, :resource_attributes ) |
#resource_attributes ⇒ Hash (readonly)
Returns frozen resource attributes.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/langfuse/otel_span_masking.rb', line 42 OtelSpanData = Data.define( :trace_id, :span_id, :parent_span_id, :name, :instrumentation_scope_name, :instrumentation_scope_version, :attributes, :resource_attributes ) |
#span_id ⇒ String (readonly)
Returns 16-character lowercase hexadecimal span ID.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/langfuse/otel_span_masking.rb', line 42 OtelSpanData = Data.define( :trace_id, :span_id, :parent_span_id, :name, :instrumentation_scope_name, :instrumentation_scope_version, :attributes, :resource_attributes ) |
#trace_id ⇒ String (readonly)
Returns 32-character lowercase hexadecimal trace ID.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/langfuse/otel_span_masking.rb', line 42 OtelSpanData = Data.define( :trace_id, :span_id, :parent_span_id, :name, :instrumentation_scope_name, :instrumentation_scope_version, :attributes, :resource_attributes ) |