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