abstract class OpenTelemetry::API::AbstractEvent
- OpenTelemetry::API::AbstractEvent
- Reference
- Object
Direct Known Subclasses
Defined in:
api/abstract_event.crConstructors
- .new(name, attributes : Hash(String, AnyAttribute))
-
.new(name, attributes : Hash(String, _))
This version converts the hash values to AnyAttributes.
- .new(name)
- .new(name = "", &)
Instance Method Summary
- #[](key)
- #[]=(key, value)
- #attributes : Hash(String, AnyAttribute)
- #attributes=(attr : Hash(String, _))
- #get_attribute(key)
- #name : String
- #name=(name : String)
- #parent_span : Span | Nil
- #parent_span=(parent_span : Span | Nil)
- #set_attribute(key, value)
- #timestamp : Time::Span
- #timestamp=(timestamp : Time::Span)
- #to_json(json : JSON::Builder)
- #to_json
- #to_protobuf
- #wall_timestamp : Time
- #wall_timestamp=(wall_timestamp : Time)
Constructor Detail
def self.new(name, attributes : Hash(String, _))
#
This version converts the hash values to AnyAttributes.