A class that contains all the required information for logging.
- internal
Properties |
public ?array $headers = NULL An array that contains the headers for the response or request
|
public ?int $latency = NULL The latency in milliseconds
|
public ?string $method = NULL Rest method type
|
public float $milliseconds The time in milliseconds at time on creation for calculating latency
|
public ?string $payload = NULL An array representation of JSON for the response or request
|
public ?int $processId = NULL The Process ID for tracing logs
|
public ?int $requestId = NULL The Request id for tracing logs
|
public ?int $retryAttempt = NULL The retry attempt number
|
public ?string $rpcName = NULL The name of the gRPC method being called
|
public ?string $serviceName = NULL The Service Name of the gRPC
|
public string|int|?null $status = NULL Status code for REST or gRPC methods
|
public string $timestamp Timestamp in format RFC3339 representing when this event ocurred
|
public ?string $url = NULL URL representing the rest URL endpoint
|
Methods |
public __construct(?float $startTime = NULL) Creates an object with all the fields required for logging Passing a string representation of a timestamp calculates the difference between these two times and sets the latency field with the result.
|