Event.php
Same filename in this branch
- 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Event.php
- 11.1.x vendor/phpunit/phpunit/src/Event/Events/Event.php
- 11.1.x vendor/composer/composer/src/Composer/Script/Event.php
- 11.1.x vendor/composer/composer/src/Composer/EventDispatcher/Event.php
- 11.1.x vendor/symfony/event-dispatcher-contracts/Event.php
- 11.1.x core/lib/Drupal/Component/EventDispatcher/Event.php
Namespace
OpenTelemetry\SDK\TraceFile
-
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 |