Documentation ¶
Index ¶
- func StatusCode(code int) codes.Code
- 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 StatusCode ¶ added in v0.13.0
StatusCode does a best effort mapping from HTTP Request Status code to GRPC Code.
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.