summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Logs/LogRecordLimits.php
blob: 9f71e62eeb4757e6d6bebe9f882b65f5a3e085a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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;
    }
}