ttrss/vendor/open-telemetry/sdk/Resource/Detectors/Constant.php

24 lines
503 B
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Resource\Detectors;
use OpenTelemetry\SDK\Resource\ResourceDetectorInterface;
use OpenTelemetry\SDK\Resource\ResourceInfo;
final class Constant implements ResourceDetectorInterface
{
private ResourceInfo $resourceInfo;
public function __construct(ResourceInfo $resourceInfo)
{
$this->resourceInfo = $resourceInfo;
}
public function getResource(): ResourceInfo
{
return $this->resourceInfo;
}
}