SpanLimits constructor

SpanLimits({
  1. int? maxNumAttributes,
  2. int? maxNumEvents,
  3. int? maxNumLink,
  4. int? maxNumAttributesPerEvent,
  5. int? maxNumAttributesPerLink,
  6. int? maxNumAttributeLength,
})

Implementation

SpanLimits(
    {int? maxNumAttributes,
    int? maxNumEvents,
    int? maxNumLink,
    int? maxNumAttributesPerEvent,
    int? maxNumAttributesPerLink,
    int? maxNumAttributeLength}) {
  _maxNumAttributes = maxNumAttributes ?? _DEFAULT_MAXNUM_ATTRIBUTES;
  _maxNumEvents = maxNumEvents ?? _DEFAULT_MAXNUM_EVENTS;
  _maxNumLink = maxNumLink ?? _DEFAULT_MAXNUM_LINKS;
  _maxNumAttributesPerEvent =
      maxNumAttributesPerEvent ?? _DEFAULT_MAXNUM_ATTRIBUTE_PER_EVENT;
  _maxNumAttributesPerLink =
      maxNumAttributesPerLink ?? _DEFAULT_MAXNUM_ATTRIBUTES_PER_LINK;
  _maxNumAttributeLength =
      maxNumAttributeLength ?? _DEFAULT_MAXNUM_ATTRIBUTES_LENGTH;
}