Reference documentation and code samples for the Stackdriver Trace Client class Status.
This plain PHP class represents a Status resource. The Status type defines a
logical error model that is suitable for different programming environments,
including REST APIs and RPC APIs.
Example:
use Google\Cloud\Trace\Status;
$status = new Status(200, 'OK');
Namespace
Google \ Cloud \ Trace
Methods
__construct
Create a new Status.
Parameters
Name
Description
code
int
The status code, which should be an enum value of
google.rpc.Code.
message
string
A developer-facing error message, which should be
in English. Any user-facing error message should be localized and
sent in the google.rpc.Status.details field, or localized by the
client.
options
array
[optional] Configuration options.
info
Returns a serializable array representing this Link.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]