ScopeSpans constructor

ScopeSpans({
  1. InstrumentationScope? scope,
  2. Iterable<Span>? spans,
  3. String? schemaUrl,
})

Implementation

factory ScopeSpans({
  $1.InstrumentationScope? scope,
  $core.Iterable<Span>? spans,
  $core.String? schemaUrl,
}) {
  final $result = create();
  if (scope != null) {
    $result.scope = scope;
  }
  if (spans != null) {
    $result.spans.addAll(spans);
  }
  if (schemaUrl != null) {
    $result.schemaUrl = schemaUrl;
  }
  return $result;
}