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

Breadcrumb

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

function ResourceLogs::setResource

The resource for the logs in this message. If this field is not set then resource info is unknown.

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/Logs/V1/ResourceLogs.php, line 96

Class

ResourceLogs
A collection of ScopeLogs from a Resource.

Namespace

Opentelemetry\Proto\Logs\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