Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
gRPC
A gRPC Fault describes the characteristics of the faults to be injected in the gRPC requests served by a target.
A gRPC fault is described by the following attributes:
Note
averageDelay
anddelayVariation
are applied to all requests affected by the fault, regardless of the value oferrorRate
.statusCode
is returned only to a fraction of requests defined byerrorRate
.
Example
This example defines a gRPC fault that introduces a delay of 50ms
in all requests and returns a status code 13
in 10%
of the requests.
const fault = {
averageDelay: '50ms',
statusCode: 10,
errorRate: 0.1,
};