OpenTelemetry PHP

Link extends Message
in package

A pointer from a profile Sample to a trace Span.

Connects a profile sample to a trace span, identified by unique trace and span IDs.

Generated from protobuf message opentelemetry.proto.profiles.v1development.Link

Table of Contents

Properties

$span_id  : mixed
A unique identifier for the linked span. The ID is an 8-byte array.
$trace_id  : mixed
A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array.

Methods

__construct()  : mixed
Constructor.
getSpanId()  : string
A unique identifier for the linked span. The ID is an 8-byte array.
getTraceId()  : string
A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array.
setSpanId()  : $this
A unique identifier for the linked span. The ID is an 8-byte array.
setTraceId()  : $this
A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array.

Properties

$span_id

A unique identifier for the linked span. The ID is an 8-byte array.

protected mixed $span_id = ''

Generated from protobuf field bytes span_id = 2;

$trace_id

A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array.

protected mixed $trace_id = ''

Generated from protobuf field bytes trace_id = 1;

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ 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.

}

getSpanId()

A unique identifier for the linked span. The ID is an 8-byte array.

public getSpanId() : string

Generated from protobuf field bytes span_id = 2;

Return values
string

getTraceId()

A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array.

public getTraceId() : string

Generated from protobuf field bytes trace_id = 1;

Return values
string

setSpanId()

A unique identifier for the linked span. The ID is an 8-byte array.

public setSpanId(string $var) : $this

Generated from protobuf field bytes span_id = 2;

Parameters
$var : string
Return values
$this

setTraceId()

A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array.

public setTraceId(string $var) : $this

Generated from protobuf field bytes trace_id = 1;

Parameters
$var : string
Return values
$this

        
On this page

Search results