blob: 9927839e7239eb02a3c903962841f53cd7ece1db (
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
30
|
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Trace;
use OpenTelemetry\API\Trace as API;
use OpenTelemetry\SDK\Common\Attribute\AttributesInterface;
final class Link implements LinkInterface
{
private AttributesInterface $attributes;
private API\SpanContextInterface $context;
public function __construct(API\SpanContextInterface $context, AttributesInterface $attributes)
{
$this->context = $context;
$this->attributes = $attributes;
}
public function getSpanContext(): API\SpanContextInterface
{
return $this->context;
}
public function getAttributes(): AttributesInterface
{
return $this->attributes;
}
}
|