TraceServiceClient
extends BaseStub
in package
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).
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(ExportTraceServiceRequest $argument[, array<string|int, mixed> $metadata = [] ][, array<string|int, mixed> $options = [] ]) : UnaryCall
Parameters
- $argument : ExportTraceServiceRequest
-
input argument
- $metadata : array<string|int, mixed> = []
-
metadata
- $options : array<string|int, mixed> = []
-
call options