setAttributes method

  1. @override
void setAttributes(
  1. List<Attribute> attributes
)
override

set multiple attributes

Implementation

@override
void setAttributes(List<api.Attribute> attributes) {
  //Don't want to have any attribute
  if (_limits.maxNumAttributes == 0) {
    _droppedSpanAttributes += attributes.length;
    return;
  }

  attributes.forEach(setAttribute);
}