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
'details' A list of messages that carry the error details. There is a
common set of message types for APIs to use. An object containing fields
of an arbitrary type. An additional field "@type" contains a URI
identifying the type.
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,["# Stackdriver Trace Client - Class Status (1.8.10)\n\nVersion latestkeyboard_arrow_down\n\n- [1.8.10 (latest)](/php/docs/reference/cloud-trace/latest/Status)\n- [1.8.9](/php/docs/reference/cloud-trace/1.8.9/Status)\n- [1.7.0](/php/docs/reference/cloud-trace/1.7.0/Status)\n- [1.6.5](/php/docs/reference/cloud-trace/1.6.5/Status)\n- [1.5.3](/php/docs/reference/cloud-trace/1.5.3/Status)\n- [1.4.11](/php/docs/reference/cloud-trace/1.4.11/Status) \nReference documentation and code samples for the Stackdriver Trace Client class Status.\n\nThis plain PHP class represents a Status resource. The Status type defines a\nlogical error model that is suitable for different programming environments,\nincluding REST APIs and RPC APIs.\n\nExample: \n\n use Google\\Cloud\\Trace\\Status;\n\n $status = new Status(200, 'OK');\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Trace\n\nMethods\n-------\n\n### __construct\n\nCreate a new Status.\n\n### info\n\nReturns a serializable array representing this Link."]]