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

#attributesObject

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

#nameObject

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

#timestampObject

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