Class: OpenTelemetry::SDK::Trace::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/opentelemetry/sdk/trace/event.rb

Overview

A text annotation with a set of attributes and a timestamp for export.

Field types are as follows: name: String attributes: frozen Hash=> String, Numeric, Boolean, Array timestamp: Integer nanoseconds since Epoch

Instance Attribute Summary collapse

Instance Attribute Details

#attributes โ‡’ Object

Returns the value of attribute attributes

Returns:

  • (Object) โ€”

    the current value of attributes


16
17
18
# File 'lib/opentelemetry/sdk/trace/event.rb', line 16

def attributes
  @attributes
end

#name โ‡’ Object

Returns the value of attribute name

Returns:

  • (Object) โ€”

    the current value of name


16
17
18
# File 'lib/opentelemetry/sdk/trace/event.rb', line 16

def name
  @name
end

#timestamp โ‡’ Object

Returns the value of attribute timestamp

Returns:

  • (Object) โ€”

    the current value of timestamp


16
17
18
# File 'lib/opentelemetry/sdk/trace/event.rb', line 16

def timestamp
  @timestamp
end