* Sends application trace data to Stackdriver Trace for viewing. Trace data is * collected for all App Engine applications by default. Trace data from other * applications can be provided using this API. This library is used to interact * with the Trace API directly. If you are looking to instrument your * application for Stackdriver Trace, we recommend using OpenCensus.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_CloudTrace extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** Write Trace data for a project or application. */ const TRACE_APPEND = "https://www.googleapis.com/auth/trace.append"; public $projects_traces; public $projects_traces_spans; /** * Constructs the internal representation of the CloudTrace service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://cloudtrace.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'cloudtrace'; $this->projects_traces = new Google_Service_CloudTrace_Resource_ProjectsTraces( $this, $this->serviceName, 'traces', array( 'methods' => array( 'batchWrite' => array( 'path' => 'v2/{+name}/traces:batchWrite', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_traces_spans = new Google_Service_CloudTrace_Resource_ProjectsTracesSpans( $this, $this->serviceName, 'spans', array( 'methods' => array( 'createSpan' => array( 'path' => 'v2/{+name}', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); } }