lib/opentelemetry/sdk/trace/span.rb in opentelemetry-sdk-0.14.0 vs lib/opentelemetry/sdk/trace/span.rb in opentelemetry-sdk-0.15.0

- old
+ new

@@ -62,10 +62,13 @@ # documents} certain "standard attributes" that have prescribed semantic # meanings. # # @param [String] key # @param [String, Boolean, Numeric, Array<String, Numeric, Boolean>] value + # Values must be non-nil and (array of) string, boolean or numeric type. + # Array values must not contain nil elements and all elements must be of + # the same basic type (string, numeric, boolean). # # @return [self] returns itself def set_attribute(key, value) super @mutex.synchronize do @@ -94,10 +97,10 @@ # prescribed semantic meanings. # # @param [String] name Name of the event. # @param [optional Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}] attributes # One or more key:value pairs, where the keys must be strings and the - # values may be string, boolean or numeric type. + # values may be (array of) string, boolean or numeric type. # @param [optional Time] timestamp Optional timestamp for the event. # # @return [self] returns itself def add_event(name, attributes: nil, timestamp: nil) super