function Link::__construct
Same name in this branch
- 11.1.x vendor/open-telemetry/sdk/Trace/Link.php \OpenTelemetry\SDK\Trace\Link::__construct()
- 11.1.x vendor/composer/composer/src/Composer/Package/Link.php \Composer\Package\Link::__construct()
- 11.1.x vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php \phpDocumentor\Reflection\DocBlock\Tags\Link::__construct()
- 11.1.x core/lib/Drupal/Core/Link.php \Drupal\Core\Link::__construct()
- 11.1.x core/modules/jsonapi/src/JsonApiResource/Link.php \Drupal\jsonapi\JsonApiResource\Link::__construct()
Constructor.
Parameters
array $data {: Optional. Data for populating the Message object.
@type string $trace_id A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array. @type string $span_id A unique identifier for the linked span. The ID is an 8-byte array. @type string $trace_state The trace_state associated with the link. @type \Opentelemetry\Proto\Common\V1\KeyValue[]|\Google\Protobuf\Internal\RepeatedField $attributes attributes is a collection of attribute key/value pairs on the link. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). @type int $dropped_attributes_count dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped. @type int $flags Flags, a bit field. Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace Context specification. To read the 8-bit W3C trace flag, use `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`. See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions. Bits 8 and 9 represent the 3 states of whether the link is remote. The states are (unknown, is not remote, is remote). To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`. To read whether the link is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`. Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero. When creating new spans, bits 10-31 (most-significant 22-bits) MUST be zero. [Optional]. }
Overrides Message::__construct
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ Span/ Link.php, line 108
Class
- Link
- A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler…
Namespace
Opentelemetry\Proto\Trace\V1\SpanCode
public function __construct($data = NULL) {
\GPBMetadata\Opentelemetry\Proto\Trace\V1\Trace::initOnce();
parent::__construct($data);
}