lib/opentelemetry/trace/event.rb in opentelemetry-api-0.2.0 vs lib/opentelemetry/trace/event.rb in opentelemetry-api-0.3.0

- old
+ new

@@ -17,22 +17,23 @@ # @return [String] attr_reader :name # Returns the frozen attributes for this event # - # @return [Hash<String, Object>] + # @return [Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}] attr_reader :attributes # Returns the timestamp for this event # # @return [Time] attr_reader :timestamp # Returns a new immutable {Event}. # # @param [String] name The name of this event - # @param [optional Hash<String, Object>] attributes A hash of attributes for this - # event. Attributes will be frozen during Event initialization. + # @param [optional Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}] + # attributes A hash of attributes for this event. Attributes will be + # frozen during Event initialization. # @param [optional Time] timestamp The timestamp for this event. # Defaults to Time.now. # @return [Event] def initialize(name:, attributes: nil, timestamp: nil) @name = name