ttrss/vendor/open-telemetry/sdk/Logs/LogRecordLimits.php

30 lines
733 B
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Logs;
use OpenTelemetry\SDK\Common\Attribute\AttributesFactoryInterface;
/**
* @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/sdk.md#logrecord-limits
*/
class LogRecordLimits
{
private AttributesFactoryInterface $attributesFactory;
/**
* @internal Use {@see SpanLimitsBuilder} to create {@see SpanLimits} instance.
*/
public function __construct(
AttributesFactoryInterface $attributesFactory
) {
$this->attributesFactory = $attributesFactory;
}
public function getAttributeFactory(): AttributesFactoryInterface
{
return $this->attributesFactory;
}
}