This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.
injectGrpcFaults
injectGrpcFaults injects gRPC faults in the requests served by a target Service.
Options
The injection of the fault is controlled by the following options:
Example
const fault = {
averageDelay: '50ms',
statusCode: 13,
errorRate: 0.1,
};
disruptor.injectGrpcFaults(fault, '30s');

