Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InstrumentationLibrarySpans.php

function InstrumentationLibrarySpans::setSpans

A list of Spans that originate from an instrumentation library.

Generated from protobuf field <code>repeated .opentelemetry.proto.trace.v1.Span spans = 2;</code>

Parameters

\Opentelemetry\Proto\Trace\V1\Span[]|\Google\Protobuf\Internal\RepeatedField $var:

Return value

$this

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/InstrumentationLibrarySpans.php, line 121

Class

InstrumentationLibrarySpans
A collection of Spans produced by an InstrumentationLibrary. InstrumentationLibrarySpans is wire-compatible with ScopeSpans for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022.

Namespace

Opentelemetry\Proto\Trace\V1

Code

public function setSpans($var) {
    $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Trace\V1\Span::class);
    $this->spans = $arr;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal