grpcstats

package
v1.20220411.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package grpcstats provides shims for writing rpc logger events to a stats collector.

Index

Constants

View Source
const (
	TagRPCMethod                 string = "rpc_method"
	TagRPCPeer                   string = "rpc_peer"
	TagRPCStreamMessageDirection string = "rpc_stream_msg_direction"
	TagRPCEngine                 string = "rpc_peer"
	TagRPCAuthority              string = "rpc_authority"

	RPCMethodUnknown string = "unknown"

	MetricNameRPC                         string = string(grpcutil.FlagRPC)
	MetricNameRPCStreamMessage            string = string(grpcutil.FlagRPCStreamMessage)
	MetricNameRPCElapsed                  string = MetricNameRPC + ".elapsed"
	MetricNameRPCElapsedLast              string = MetricNameRPCElapsed + ".last"
	MetricNameRPCStreamMessageElapsed     string = MetricNameRPCStreamMessage + ".elapsed"
	MetricNameRPCStreamMessageElapsedLast string = MetricNameRPCStreamMessageElapsed + ".last"
)

Tag constants

Variables

This section is empty.

Functions

func AddListeners

func AddListeners(log logger.Listenable, collector stats.Collector, opts ...stats.AddListenerOption)

AddListeners adds grpc listeners.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL