Class: Langfuse::OtelSpanData

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#attributesHash (readonly)

Returns frozen span attributes.

Returns:

  • (Hash)

    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_nameString? (readonly)

Returns instrumentation scope name.

Returns:

  • (String, nil)

    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_versionString? (readonly)

Returns instrumentation scope version.

Returns:

  • (String, nil)

    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
)

#nameString (readonly)

Returns span name.

Returns:

  • (String)

    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_idString? (readonly)

Returns 16-character lowercase hexadecimal parent span ID.

Returns:

  • (String, nil)

    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_attributesHash (readonly)

Returns frozen resource attributes.

Returns:

  • (Hash)

    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_idString (readonly)

Returns 16-character lowercase hexadecimal span ID.

Returns:

  • (String)

    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_idString (readonly)

Returns 32-character lowercase hexadecimal trace ID.

Returns:

  • (String)

    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
)