class TraceServiceClient
Service that can be used to push spans between one Application instrumented with OpenTelemetry and a collector, or between a collector and a central collector (in this case spans are sent/received to/from multiple Applications).
Hierarchy
- class \Opentelemetry\Proto\Collector\Trace\V1\TraceServiceClient extends \Grpc\BaseStub
Expanded class hierarchy of TraceServiceClient
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Collector/ Trace/ V1/ TraceServiceClient.php, line 26
Namespace
Opentelemetry\Proto\Collector\Trace\V1View source
class TraceServiceClient extends \Grpc\BaseStub {
/**
* @param string $hostname hostname
* @param array $opts channel options
* @param \Grpc\Channel $channel (optional) re-use channel object
*/
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
* @param \Opentelemetry\Proto\Collector\Trace\V1\ExportTraceServiceRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Export(\Opentelemetry\Proto\Collector\Trace\V1\ExportTraceServiceRequest $argument, $metadata = [], $options = []) {
return $this->_simpleRequest('/opentelemetry.proto.collector.trace.v1.TraceService/Export', $argument, [
'\\Opentelemetry\\Proto\\Collector\\Trace\\V1\\ExportTraceServiceResponse',
'decode',
], $metadata, $options);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TraceServiceClient::Export | public | function | For performance reasons, it is recommended to keep this RPC alive for the entire life of the application. |
TraceServiceClient::__construct | public | function |