summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Common/Attribute/LogRecordAttributeValidator.php
blob: a09d2637205946c17e789ceb0a7d95e97df12a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

declare(strict_types=1);

namespace OpenTelemetry\SDK\Common\Attribute;

class LogRecordAttributeValidator implements AttributeValidatorInterface
{
    public function validate($value): bool
    {
        return true;
    }

    public function getInvalidMessage(): string
    {
        //not required as this validator always returns true
        return 'unused';
    }
}