Documentation ¶
Index ¶
- Variables
- func ClientOptions(log ttnlog.Interface) []grpc.DialOption
- func FieldsFromIncomingContext(ctx context.Context) ttnlog.Fields
- func FieldsFromOutgoingContext(ctx context.Context) ttnlog.Fields
- func ServerOptions(log ttnlog.Interface) []grpc.ServerOption
- func StreamClientInterceptor(log ttnlog.Interface) grpc.StreamClientInterceptor
- func StreamServerInterceptor(log ttnlog.Interface) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(log ttnlog.Interface) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(log ttnlog.Interface) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
View Source
var MDLogFields = []string{"id", "service-name", "service-version", "limit", "offset"}
MDLogFields are logged from the context
Functions ¶
func ClientOptions ¶
func ClientOptions(log ttnlog.Interface) []grpc.DialOption
ClientOptions for logging RPCs
func FieldsFromIncomingContext ¶
FieldsFromIncomingContext returns peer information and MDLogFields from the given context
func FieldsFromOutgoingContext ¶
FieldsFromOutgoingContext returns peer information and MDLogFields from the given context
func ServerOptions ¶
func ServerOptions(log ttnlog.Interface) []grpc.ServerOption
ServerOptions for logging RPCs
func StreamClientInterceptor ¶
func StreamClientInterceptor(log ttnlog.Interface) grpc.StreamClientInterceptor
StreamClientInterceptor logs streaming RPCs on the client side
func StreamServerInterceptor ¶
func StreamServerInterceptor(log ttnlog.Interface) grpc.StreamServerInterceptor
StreamServerInterceptor logs streaming RPCs on the server side
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(log ttnlog.Interface) grpc.UnaryClientInterceptor
UnaryClientInterceptor logs unary RPCs on the client side
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(log ttnlog.Interface) grpc.UnaryServerInterceptor
UnaryServerInterceptor logs unary RPCs on the server side
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.