go-utils: github.com/TheThingsNetwork/go-utils/grpc/rpclog Index | Files

package rpclog

import "github.com/TheThingsNetwork/go-utils/grpc/rpclog"

Index

Package Files

fields.go grpc.go

Variables

var MDLogFields = []string{"id", "service-name", "service-version", "limit", "offset"}

MDLogFields are logged from the context

func ClientOptions Uses

func ClientOptions(log ttnlog.Interface) []grpc.DialOption

ClientOptions for logging RPCs

func FieldsFromIncomingContext Uses

func FieldsFromIncomingContext(ctx context.Context) ttnlog.Fields

FieldsFromIncomingContext returns peer information and MDLogFields from the given context

func FieldsFromOutgoingContext Uses

func FieldsFromOutgoingContext(ctx context.Context) ttnlog.Fields

FieldsFromOutgoingContext returns peer information and MDLogFields from the given context

func ServerOptions Uses

func ServerOptions(log ttnlog.Interface) []grpc.ServerOption

ServerOptions for logging RPCs

func StreamClientInterceptor Uses

func StreamClientInterceptor(log ttnlog.Interface) grpc.StreamClientInterceptor

StreamClientInterceptor logs streaming RPCs on the client side

func StreamServerInterceptor Uses

func StreamServerInterceptor(log ttnlog.Interface) grpc.StreamServerInterceptor

StreamServerInterceptor logs streaming RPCs on the server side

func UnaryClientInterceptor Uses

func UnaryClientInterceptor(log ttnlog.Interface) grpc.UnaryClientInterceptor

UnaryClientInterceptor logs unary RPCs on the client side

func UnaryServerInterceptor Uses

func UnaryServerInterceptor(log ttnlog.Interface) grpc.UnaryServerInterceptor

UnaryServerInterceptor logs unary RPCs on the server side

Package rpclog imports 8 packages (graph) and is imported by 6 packages. Updated 2017-09-25. Refresh now. Tools for package owners.