Documentation ¶
Index ¶
- func StatusText(code int) string
- func WrapStatsHandler(delegate stats.Handler, spanFromContext sdk.SpanFromContext) stats.Handler
- func WrapUnaryClientInterceptor(delegateInterceptor grpc.UnaryClientInterceptor, ...) grpc.UnaryClientInterceptor
- func WrapUnaryServerInterceptor(delegateInterceptor grpc.UnaryServerInterceptor, ...) grpc.UnaryServerInterceptor
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusText ¶ added in v0.7.2
func WrapStatsHandler ¶
WrapStatsHandler wraps an instrumented StatsHandler and returns a new one that records the request/response body and metadata.
func WrapUnaryClientInterceptor ¶
func WrapUnaryClientInterceptor(delegateInterceptor grpc.UnaryClientInterceptor, spanFromContext sdk.SpanFromContext, spanAttributes map[string]string) grpc.UnaryClientInterceptor
WrapUnaryClientInterceptor returns an interceptor that records the request and response message's body and serialize it as JSON.
func WrapUnaryServerInterceptor ¶
func WrapUnaryServerInterceptor( delegateInterceptor grpc.UnaryServerInterceptor, spanFromContext sdk.SpanFromContext, options *Options, spanAttributes map[string]string, ) grpc.UnaryServerInterceptor
WrapUnaryServerInterceptor returns an interceptor that records the request and response message's body and serialize it as JSON
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.