class OpenTelemetry::API::Event

Defined in:

api/event.cr

Constructors

Instance Method Summary

Instance methods inherited from class OpenTelemetry::API::AbstractEvent

[](key) [], []=(key, value) []=, attributes : Hash(String, AnyAttribute) attributes, attributes=(attr : Hash(String, _)) attributes=, get_attribute(key) get_attribute, name : String name, name=(name : String) name=, parent_span : Span | Nil parent_span, parent_span=(parent_span : Span | Nil) parent_span=, set_attribute(key, value) set_attribute, timestamp : Time::Span timestamp, timestamp=(timestamp : Time::Span) timestamp=, to_json(json : JSON::Builder)
to_json
to_json
, to_protobuf to_protobuf, wall_timestamp : Time wall_timestamp, wall_timestamp=(wall_timestamp : Time) wall_timestamp=

Constructor methods inherited from class OpenTelemetry::API::AbstractEvent

new(name, attributes : Hash(String, AnyAttribute))
new(name, attributes : Hash(String, _))
new(name)
new(name = "", &)
new

Constructor Detail

def self.new(name : String, attributes : Hash(String, AnyAttribute)) #

[View source]
def self.new(name : String, attributes : Hash(String, _)) #

[View source]
def self.new(name : String) #

[View source]
def self.new(name : String = "", &) #

[View source]

Instance Method Detail

def [](key) #

[View source]
def []=(key, value) #

[View source]
def attributes : Hash(String, AnyAttribute) #

[View source]
def attributes=(attr : Hash(String, _)) #

[View source]
def get_attribute(key) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def parent_span : Span | Nil #

[View source]
def parent_span=(parent_span : Span | Nil) #

[View source]
def set_attribute(key, value) #

[View source]
def timestamp : Time::Span #

[View source]
def timestamp=(timestamp : Time::Span) #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def to_json #

[View source]
def to_protobuf #

[View source]
def wall_timestamp : Time #

[View source]
def wall_timestamp=(wall_timestamp : Time) #

[View source]