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

Breadcrumb

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

function Event::setName

name of the event. This field is semantically required to be set to non-empty string.

Generated from protobuf field <code>string name = 2;</code>

Parameters

string $var:

Return value

$this

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Event.php, line 119

Class

Event
Event is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs.

Namespace

Opentelemetry\Proto\Trace\V1\Span

Code

public function setName($var) {
    GPBUtil::checkString($var, True);
    $this->name = $var;
    return $this;
}

API Navigation

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