abstract class OpenTelemetry::API::AbstractEvent

Direct Known Subclasses

Defined in:

api/abstract_event.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

This version converts the hash values to AnyAttributes.


def self.new(name) #

def self.new(name = "", &) #

Instance Method Detail

abstract def [](key) #

abstract def []=(key, value) #

abstract def attributes : Hash(String, AnyAttribute) #

abstract def attributes=(attr : Hash(String, _)) #

abstract def get_attribute(key) #

abstract def name : String #

abstract def name=(name : String) #

abstract def parent_span : Span? #

abstract def parent_span=(parent_span : Span?) #

abstract def set_attribute(key, value) #

abstract def timestamp : Time::Span #

abstract def timestamp=(timestamp : Time::Span) #

abstract def to_json(json : JSON::Builder) #

abstract def to_json #

abstract def to_protobuf #

abstract def wall_timestamp : Time #

abstract def wall_timestamp=(wall_timestamp : Time) #