class OpenTelemetry::API::Event
- OpenTelemetry::API::Event
- OpenTelemetry::API::AbstractEvent
- Reference
- Object
Defined in:
api/event.crConstructors
- .new(name : String, attributes : Hash(String, AnyAttribute))
- .new(name : String, attributes : Hash(String, _))
- .new(name : String)
- .new(name : String = "", &)
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?
- #parent_span=(parent_span : Span?)
- #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)
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?
parent_span,
parent_span=(parent_span : Span?)
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