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

Breadcrumb

  1. Drupal Core 11.1.x

Event.php

Same filename in this branch
  1. 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Event.php
  2. 11.1.x vendor/phpunit/phpunit/src/Event/Events/Event.php
  3. 11.1.x vendor/composer/composer/src/Composer/Script/Event.php
  4. 11.1.x vendor/composer/composer/src/Composer/EventDispatcher/Event.php
  5. 11.1.x vendor/symfony/event-dispatcher-contracts/Event.php
  6. 11.1.x core/lib/Drupal/Component/EventDispatcher/Event.php

Namespace

OpenTelemetry\SDK\Trace

File

vendor/open-telemetry/sdk/Trace/Event.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Trace;

use function count;
use OpenTelemetry\SDK\Common\Attribute\AttributesInterface;
final class Event implements EventInterface {
    public function __construct(string $name, int $timestamp, AttributesInterface $attributes) {
    }
    public function getAttributes() : AttributesInterface {
        return $this->attributes;
    }
    public function getName() : string {
        return $this->name;
    }
    public function getEpochNanos() : int {
        return $this->timestamp;
    }
    public function getTotalAttributeCount() : int {
        return count($this->attributes);
    }
    public function getDroppedAttributesCount() : int {
        return $this->attributes
            ->getDroppedAttributesCount();
    }

}

Classes

Title Deprecated Summary
Event

API Navigation

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