Documentation ¶
Overview ¶
Package grpcext allows gRPC requests collecting stats info.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugStat ¶
func DebugStat(logger logrus.FieldLogger, stat grpcstats.RPCStats, httpDebugOption string)
DebugStat prints debugging information based on RPCStats.
func DefaultOptions ¶
func DefaultOptions(getState func() *lib.State) []grpc.DialOption
DefaultOptions generates an option set with common options for requests from a VU.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a gRPC client connection.
func (*Conn) Invoke ¶
func (c *Conn) Invoke( ctx context.Context, url string, md metadata.MD, req Request, opts ...grpc.CallOption, ) (*Response, error)
Invoke executes a unary gRPC request.
func (*Conn) Reflect ¶
func (c *Conn) Reflect(ctx context.Context) (*descriptorpb.FileDescriptorSet, error)
Reflect returns using the reflection the FileDescriptorSet describing the service.
type Request ¶
type Request struct { MethodDescriptor protoreflect.MethodDescriptor TagsAndMeta *metrics.TagsAndMeta Message []byte }
Request represents a gRPC request.
Click to show internal directories.
Click to hide internal directories.