InstrumentationScope constructor

InstrumentationScope({
  1. String? name,
  2. String? version,
  3. Iterable<KeyValue>? attributes,
  4. int? droppedAttributesCount,
})

Implementation

factory InstrumentationScope({
  $core.String? name,
  $core.String? version,
  $core.Iterable<KeyValue>? attributes,
  $core.int? droppedAttributesCount,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (version != null) {
    $result.version = version;
  }
  if (attributes != null) {
    $result.attributes.addAll(attributes);
  }
  if (droppedAttributesCount != null) {
    $result.droppedAttributesCount = droppedAttributesCount;
  }
  return $result;
}