/** * Sets a set of attributes to the {@code Span}. The effect of this call is equivalent to that of * calling {@link #putAttribute(String, AttributeValue)} once for each element in the specified * map. * * @param attributes the attributes that will be added and associated with the {@code Span}. */ public void putAttributes(Map<String, AttributeValue> attributes) { // Not final because we want to start overriding this method from the beginning, this will // allow us to remove the addAttributes faster. All implementations MUST override this method. addAttributes(attributes); }
/** * Sets a set of attributes to the {@code Span}. The effect of this call is equivalent to that of * calling {@link #putAttribute(String, AttributeValue)} once for each element in the specified * map. * * @param attributes the attributes that will be added and associated with the {@code Span}. * @since 0.6 */ public void putAttributes(Map<String, AttributeValue> attributes) { // Not final because we want to start overriding this method from the beginning, this will // allow us to remove the addAttributes faster. All implementations MUST override this method. Utils.checkNotNull(attributes, "attributes"); addAttributes(attributes); }