OpenTelemetry PHP

Status extends Message
in package

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.

Generated from protobuf message opentelemetry.proto.trace.v1.Status

Table of Contents

Properties

$code  : mixed
The status code.
$message  : mixed
A developer-facing human readable error message.

Methods

__construct()  : mixed
Constructor.
getCode()  : int
The status code.
getMessage()  : string
A developer-facing human readable error message.
setCode()  : $this
The status code.
setMessage()  : $this
A developer-facing human readable error message.

Properties

$code

The status code.

protected mixed $code = 0

Generated from protobuf field .opentelemetry.proto.trace.v1.Status.StatusCode code = 3;

$message

A developer-facing human readable error message.

protected mixed $message = ''

Generated from protobuf field string message = 2;

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 $message
      A developer-facing human readable error message.
@type int $code
      The status code.

}

getCode()

The status code.

public getCode() : int

Generated from protobuf field .opentelemetry.proto.trace.v1.Status.StatusCode code = 3;

Return values
int

getMessage()

A developer-facing human readable error message.

public getMessage() : string

Generated from protobuf field string message = 2;

Return values
string

setCode()

The status code.

public setCode(int $var) : $this

Generated from protobuf field .opentelemetry.proto.trace.v1.Status.StatusCode code = 3;

Parameters
$var : int
Return values
$this

setMessage()

A developer-facing human readable error message.

public setMessage(string $var) : $this

Generated from protobuf field string message = 2;

Parameters
$var : string
Return values
$this

        
On this page

Search results