OpenTelemetry PHP

MetricsServiceClient extends BaseStub
in package

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.

Table of Contents

Methods

__construct()  : mixed
Export()  : UnaryCall
For performance reasons, it is recommended to keep this RPC alive for the entire life of the application.

Methods

__construct()

public __construct(string $hostname, array<string|int, mixed> $opts[, Channel $channel = null ]) : mixed
Parameters
$hostname : string

hostname

$opts : array<string|int, mixed>

channel options

$channel : Channel = null

(optional) re-use channel object

Export()

For performance reasons, it is recommended to keep this RPC alive for the entire life of the application.

public Export(ExportMetricsServiceRequest $argument[, array<string|int, mixed> $metadata = [] ][, array<string|int, mixed> $options = [] ]) : UnaryCall
Parameters
$argument : ExportMetricsServiceRequest

input argument

$metadata : array<string|int, mixed> = []

metadata

$options : array<string|int, mixed> = []

call options

Return values
UnaryCall

        
On this page

Search results