Stackdriver Trace Client - Class StackTrace (1.6.5)

Reference documentation and code samples for the Stackdriver Trace Client class StackTrace.

This plain PHP class represents a StackTrace resource. A call stack appearing in a trace.

Example:

use Google\Cloud\Trace\StackTrace;

$stackTrace = new StackTrace(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));

Namespace

Google \ Cloud \ Trace

Methods

__construct

Create a new StackTrace.

Parameter
NameDescription
backtrace array

The backtrace in the format of debug_backtrace().

info

Returns a serializable array representing this StackTrace

Returns
TypeDescription
array