Documentation ¶
Index ¶
- func AddFieldToSpan(ctx context.Context, key string, value interface{})
- func AddFieldToTrace(ctx context.Context, key string, value interface{})
- func Close() error
- func UnaryClientInterceptor() grpc.UnaryClientInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
- func WrapHTTP(handler http.Handler, name string) http.Handler
- func WrapHTTPTransport(r http.RoundTripper) http.RoundTripper
- type Monitoring
- type Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFieldToSpan ¶ added in v0.1.31
func AddFieldToTrace ¶
func UnaryClientInterceptor ¶
func UnaryClientInterceptor() grpc.UnaryClientInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor starts a beeline span for each grpc call.
func WrapHTTPTransport ¶
func WrapHTTPTransport(r http.RoundTripper) http.RoundTripper
WrapHTTPTransport will add monitoring middleware to an HTTP Transport. This allows for trace propagation.
Types ¶
type Monitoring ¶ added in v0.1.31
type Monitoring interface { WrapHTTP(handler http.Handler, name string) http.Handler WrapHTTPTransport(r http.RoundTripper) http.RoundTripper GRPCUnaryClientInterceptor() grpc.UnaryClientInterceptor GRPCUnaryServerInterceptor() grpc.UnaryServerInterceptor StartSpan(ctx context.Context, name string) (context.Context, Span) AddFieldToSpan(ctx context.Context, key string, value interface{}) AddFieldToTrace(ctx context.Context, key string, value interface{}) Close() error }
var Default Monitoring = &nullMonitoring{}
Click to show internal directories.
Click to hide internal directories.