stats

package
v1.2.120 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpClientTrace

func NewHttpClientTrace(ctx context.Context) *httptrace.ClientTrace

func NewHttpRequestWithTrace

func NewHttpRequestWithTrace(req *http.Request) *http.Request

Types

type ClientHandler

type ClientHandler struct{}

ClientHandler implements a gRPC stats.Handler for recording gRPC stats. Use with gRPC clients only.

func (ClientHandler) HandleConn

func (c ClientHandler) HandleConn(ctx context.Context, connStats stats.ConnStats)

HandleConn exists to satisfy gRPC stats.Handler.

func (ClientHandler) HandleRPC

func (c ClientHandler) HandleRPC(ctx context.Context, rpcStats stats.RPCStats)

HandleRPC implements per-RPC tracing and stats instrumentation.

func (ClientHandler) TagConn

TagConn exists to satisfy gRPC stats.Handler.

func (ClientHandler) TagRPC

TagRPC implements per-RPC context management.

type ServerHandler

type ServerHandler struct{}

ServerHandler implements a gRPC stats.Handler for recording gRPC stats. Use with gRPC servers only.

func (ServerHandler) HandleConn

func (s ServerHandler) HandleConn(ctx context.Context, connStats stats.ConnStats)

HandleConn exists to satisfy gRPC stats.Handler.

func (ServerHandler) HandleRPC

func (s ServerHandler) HandleRPC(ctx context.Context, rpcStats stats.RPCStats)

HandleRPC implements per-RPC tracing and stats instrumentation.

func (ServerHandler) TagConn

TagConn exists to satisfy gRPC stats.Handler.

func (ServerHandler) TagRPC

TagRPC implements per-RPC context management.

Jump to

Keyboard shortcuts

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