function MetricsServiceClient::Export
For performance reasons, it is recommended to keep this RPC alive for the entire life of the application.
Parameters
\Opentelemetry\Proto\Collector\Metrics\V1\ExportMetricsServiceRequest $argument input argument:
array $metadata metadata:
array $options call options:
Return value
\Grpc\UnaryCall
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Collector/ Metrics/ V1/ MetricsServiceClient.php, line 45
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.
Namespace
Opentelemetry\Proto\Collector\Metrics\V1Code
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);
}