class LogsServiceClient
Service that can be used to push logs between one Application instrumented with OpenTelemetry and an collector, or between an collector and a central collector (in this case logs are sent/received to/from multiple Applications).
Hierarchy
- class \Opentelemetry\Proto\Collector\Logs\V1\LogsServiceClient extends \Grpc\BaseStub
Expanded class hierarchy of LogsServiceClient
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Collector/ Logs/ V1/ LogsServiceClient.php, line 26
Namespace
Opentelemetry\Proto\Collector\Logs\V1View source
class LogsServiceClient 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\Logs\V1\ExportLogsServiceRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Export(\Opentelemetry\Proto\Collector\Logs\V1\ExportLogsServiceRequest $argument, $metadata = [], $options = []) {
return $this->_simpleRequest('/opentelemetry.proto.collector.logs.v1.LogsService/Export', $argument, [
'\\Opentelemetry\\Proto\\Collector\\Logs\\V1\\ExportLogsServiceResponse',
'decode',
], $metadata, $options);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
LogsServiceClient::Export | public | function | For performance reasons, it is recommended to keep this RPC alive for the entire life of the application. |
LogsServiceClient::__construct | public | function |