Categorygithub.com/Easypay/go-agent/v3/integrations/nrgrpc
modulepackage
1.3.2
Repository: https://github.com/easypay/go-agent.git
Documentation: pkg.go.dev

# README

v3/integrations/nrgrpc GoDoc

Package nrgrpc instruments https://github.com/grpc/grpc-go.

import "github.com/Easypay/go-agent/v3/integrations/nrgrpc"

For more information, see godocs.

# Packages

No description provided by the author
No description provided by the author

# Functions

Configure takes a list of WithStatusHandler options and sets them as the new default handlers for the specified gRPC status codes, in the same way as if WithStatusHandler were given to the StreamServiceInterceptor or UnaryServiceInterceptor functions (q.v.); however, in this case the new handlers become the default for any subsequent interceptors created by the above functions.
ErrorInterceptorStatusHandler is our standard handler for gRPC statuses which we want to report as being errors, with the relevant error messages and contextual information gleaned from the error value received from the RPC call.
IgnoreInterceptorStatusHandler is our standard handler for gRPC statuses which we want to ignore (in terms of any gRPC-specific reporting on the transaction).
InfoInterceptorStatusHandler is our standard handler for gRPC statuses which we want to report as informational messages only.
OKInterceptorStatusHandler is our standard handler for gRPC statuses which we want to report as being successful, as with the status code OK.
StreamClientInterceptor instruments client streaming RPCs.
StreamServerInterceptor instruments server streaming RPCs.
UnaryClientInterceptor instruments client unary RPCs.
UnaryServerInterceptor instruments server unary RPCs.
WarningInterceptorStatusHandler is our standard handler for gRPC statuses which we want to report as warnings.
WithStatusHandler indicates a handler function to be used to report the indicated gRPC status.

# Variables

DefaultInterceptorStatusHandler indicates which of our standard handlers will be used for any status code which is not explicitly assigned a handler.

# Type aliases

ErrorHandler is the type of a gRPC status handler function.
HandlerOption is the type for options passed to the interceptor functions to specify gRPC status handlers.