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

Breadcrumb

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

function Event::__construct

Same name in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Trace/Event.php \OpenTelemetry\SDK\Trace\Event::__construct()
  2. 11.1.x vendor/composer/composer/src/Composer/Script/Event.php \Composer\Script\Event::__construct()
  3. 11.1.x vendor/composer/composer/src/Composer/EventDispatcher/Event.php \Composer\EventDispatcher\Event::__construct()

Constructor.

Parameters

array $data {: Optional. Data for populating the Message object.

@type int|string $time_unix_nano time_unix_nano is the time the event occurred. @type string $name name of the event. This field is semantically required to be set to non-empty string. @type \Opentelemetry\Proto\Common\V1\KeyValue[]|\Google\Protobuf\Internal\RepeatedField $attributes attributes is a collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). @type int $dropped_attributes_count dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped. }

Overrides Message::__construct

File

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

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 __construct($data = NULL) {
    \GPBMetadata\Opentelemetry\Proto\Trace\V1\Trace::initOnce();
    parent::__construct($data);
}

API Navigation

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