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