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

Breadcrumb

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

function ResourceSpans::setResource

The resource for the spans in this message. If this field is not set then no resource info is known.

Generated from protobuf field <code>.opentelemetry.proto.resource.v1.Resource resource = 1;</code>

Parameters

\Opentelemetry\Proto\Resource\V1\Resource $var:

Return value

$this

File

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

Class

ResourceSpans
A collection of ScopeSpans from a Resource.

Namespace

Opentelemetry\Proto\Trace\V1

Code

public function setResource($var) {
    GPBUtil::checkMessage($var, \Opentelemetry\Proto\Resource\V1\Resource::class);
    $this->resource = $var;
    return $this;
}

API Navigation

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